using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Windows.Forms;
using C1.Win.C1Input;
using C1.Win.C1TrueDBGrid;
using PCSComPayroll.BO;
using PCSComPayroll.DS;
using PCSComUtils.Common;
using PCSComUtils.Common.BO;
using PCSComUtils.PCSExc;
using PCSUtils.Log;
using PCSUtils.Utils;
using CancelEventArgs = System.ComponentModel.CancelEventArgs;

namespace PCSPayroll.Payroll
{
	/// <summary>
	/// Summary description for BudgetEstimates.
	/// </summary>
	public class BudgetEstimates : Form
	{
		private Label lblTransNo;
		private Label lblPostDate;
		private Label lblInvoiceNo;
		private C1DateEdit dtmTransDate;
		private Button btnTransNo;
		private Button btnGoodsCode;
		private Button btnSearch;
		private Button btnEdit;
		private Button btnClose;
		private Button btnHelp;
		private Button btnSave;
		private Button btnAdd;
		private C1TrueDBGrid dgrdData;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private Container components = null;
		public const string THIS = "PCSPayroll.Payroll.BudgetEstimates";
		private DataTable dtbGridLayOut;
		private DataSet dstData = new DataSet();
		private TextBox txtFCode;
		private TextBox txtTransNo;
		private EnumAction mFormMode = EnumAction.Default;
		private System.Windows.Forms.Label lblTotalAmount;
		private System.Windows.Forms.Label lblTotalTime;
		private System.Windows.Forms.Label lblTotalApproved;
		private System.Windows.Forms.TextBox txtTotalApproved;
		private System.Windows.Forms.TextBox txtTotalAmount;
		private System.Windows.Forms.TextBox txtTotalTime;
		private System.Windows.Forms.TextBox txtTotalRequestApproved;
		private System.Windows.Forms.Label lblTotalRequest;
		private System.Windows.Forms.Label lblTotalRequestApproved;
		private System.Windows.Forms.TextBox txtTotalAdvance;
		private System.Windows.Forms.Label lblTotalAdvance;
		private System.Windows.Forms.TextBox txtTotalAdvanceApproved;
		private System.Windows.Forms.Label lblTotalAdvanceApproved;
		private System.Windows.Forms.TextBox txtTotalRequest;
		private System.Windows.Forms.CheckBox chkCompleted;
		bool blnIsInEstimate = false;
		private System.Windows.Forms.Button btnDelete;
		BudgetEstimatesBO boEstimate = new BudgetEstimatesBO();
		Hashtable htProductionLine = new Hashtable();

		public BudgetEstimates()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(BudgetEstimates));
			this.dgrdData = new C1.Win.C1TrueDBGrid.C1TrueDBGrid();
			this.txtFCode = new System.Windows.Forms.TextBox();
			this.txtTransNo = new System.Windows.Forms.TextBox();
			this.btnTransNo = new System.Windows.Forms.Button();
			this.btnGoodsCode = new System.Windows.Forms.Button();
			this.lblTransNo = new System.Windows.Forms.Label();
			this.lblPostDate = new System.Windows.Forms.Label();
			this.lblInvoiceNo = new System.Windows.Forms.Label();
			this.dtmTransDate = new C1.Win.C1Input.C1DateEdit();
			this.btnSearch = new System.Windows.Forms.Button();
			this.btnEdit = new System.Windows.Forms.Button();
			this.btnClose = new System.Windows.Forms.Button();
			this.btnHelp = new System.Windows.Forms.Button();
			this.btnSave = new System.Windows.Forms.Button();
			this.btnAdd = new System.Windows.Forms.Button();
			this.chkCompleted = new System.Windows.Forms.CheckBox();
			this.lblTotalAmount = new System.Windows.Forms.Label();
			this.lblTotalTime = new System.Windows.Forms.Label();
			this.lblTotalApproved = new System.Windows.Forms.Label();
			this.txtTotalApproved = new System.Windows.Forms.TextBox();
			this.txtTotalAmount = new System.Windows.Forms.TextBox();
			this.txtTotalTime = new System.Windows.Forms.TextBox();
			this.txtTotalRequestApproved = new System.Windows.Forms.TextBox();
			this.txtTotalRequest = new System.Windows.Forms.TextBox();
			this.lblTotalRequest = new System.Windows.Forms.Label();
			this.lblTotalRequestApproved = new System.Windows.Forms.Label();
			this.txtTotalAdvance = new System.Windows.Forms.TextBox();
			this.lblTotalAdvance = new System.Windows.Forms.Label();
			this.txtTotalAdvanceApproved = new System.Windows.Forms.TextBox();
			this.lblTotalAdvanceApproved = new System.Windows.Forms.Label();
			this.btnDelete = new System.Windows.Forms.Button();
			((System.ComponentModel.ISupportInitialize)(this.dgrdData)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmTransDate)).BeginInit();
			this.SuspendLayout();
			// 
			// dgrdData
			// 
			this.dgrdData.AccessibleDescription = resources.GetString("dgrdData.AccessibleDescription");
			this.dgrdData.AccessibleName = resources.GetString("dgrdData.AccessibleName");
			this.dgrdData.AllowAddNew = ((bool)(resources.GetObject("dgrdData.AllowAddNew")));
			this.dgrdData.AllowArrows = ((bool)(resources.GetObject("dgrdData.AllowArrows")));
			this.dgrdData.AllowColMove = ((bool)(resources.GetObject("dgrdData.AllowColMove")));
			this.dgrdData.AllowColSelect = ((bool)(resources.GetObject("dgrdData.AllowColSelect")));
			this.dgrdData.AllowDelete = ((bool)(resources.GetObject("dgrdData.AllowDelete")));
			this.dgrdData.AllowDrag = ((bool)(resources.GetObject("dgrdData.AllowDrag")));
			this.dgrdData.AllowFilter = ((bool)(resources.GetObject("dgrdData.AllowFilter")));
			this.dgrdData.AllowHorizontalSplit = ((bool)(resources.GetObject("dgrdData.AllowHorizontalSplit")));
			this.dgrdData.AllowRowSelect = ((bool)(resources.GetObject("dgrdData.AllowRowSelect")));
			this.dgrdData.AllowSort = ((bool)(resources.GetObject("dgrdData.AllowSort")));
			this.dgrdData.AllowUpdate = ((bool)(resources.GetObject("dgrdData.AllowUpdate")));
			this.dgrdData.AllowUpdateOnBlur = ((bool)(resources.GetObject("dgrdData.AllowUpdateOnBlur")));
			this.dgrdData.AllowVerticalSplit = ((bool)(resources.GetObject("dgrdData.AllowVerticalSplit")));
			this.dgrdData.AlternatingRows = ((bool)(resources.GetObject("dgrdData.AlternatingRows")));
			this.dgrdData.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dgrdData.Anchor")));
			this.dgrdData.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dgrdData.BackgroundImage")));
			this.dgrdData.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dgrdData.BorderStyle")));
			this.dgrdData.Caption = resources.GetString("dgrdData.Caption");
			this.dgrdData.CaptionHeight = ((int)(resources.GetObject("dgrdData.CaptionHeight")));
			this.dgrdData.CellTipsDelay = ((int)(resources.GetObject("dgrdData.CellTipsDelay")));
			this.dgrdData.CellTipsWidth = ((int)(resources.GetObject("dgrdData.CellTipsWidth")));
			this.dgrdData.ChildGrid = ((C1.Win.C1TrueDBGrid.C1TrueDBGrid)(resources.GetObject("dgrdData.ChildGrid")));
			this.dgrdData.CollapseColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.CollapseColor")));
			this.dgrdData.ColumnFooters = ((bool)(resources.GetObject("dgrdData.ColumnFooters")));
			this.dgrdData.ColumnHeaders = ((bool)(resources.GetObject("dgrdData.ColumnHeaders")));
			this.dgrdData.DefColWidth = ((int)(resources.GetObject("dgrdData.DefColWidth")));
			this.dgrdData.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dgrdData.Dock")));
			this.dgrdData.EditDropDown = ((bool)(resources.GetObject("dgrdData.EditDropDown")));
			this.dgrdData.EmptyRows = ((bool)(resources.GetObject("dgrdData.EmptyRows")));
			this.dgrdData.Enabled = ((bool)(resources.GetObject("dgrdData.Enabled")));
			this.dgrdData.ExpandColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.ExpandColor")));
			this.dgrdData.ExposeCellMode = ((C1.Win.C1TrueDBGrid.ExposeCellModeEnum)(resources.GetObject("dgrdData.ExposeCellMode")));
			this.dgrdData.ExtendRightColumn = ((bool)(resources.GetObject("dgrdData.ExtendRightColumn")));
			this.dgrdData.FetchRowStyles = ((bool)(resources.GetObject("dgrdData.FetchRowStyles")));
			this.dgrdData.FilterBar = ((bool)(resources.GetObject("dgrdData.FilterBar")));
			this.dgrdData.FlatStyle = ((C1.Win.C1TrueDBGrid.FlatModeEnum)(resources.GetObject("dgrdData.FlatStyle")));
			this.dgrdData.Font = ((System.Drawing.Font)(resources.GetObject("dgrdData.Font")));
			this.dgrdData.GroupByAreaVisible = ((bool)(resources.GetObject("dgrdData.GroupByAreaVisible")));
			this.dgrdData.GroupByCaption = resources.GetString("dgrdData.GroupByCaption");
			this.dgrdData.Images.Add(((System.Drawing.Image)(resources.GetObject("resource"))));
			this.dgrdData.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dgrdData.ImeMode")));
			this.dgrdData.LinesPerRow = ((int)(resources.GetObject("dgrdData.LinesPerRow")));
			this.dgrdData.Location = ((System.Drawing.Point)(resources.GetObject("dgrdData.Location")));
			this.dgrdData.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.DottedCellBorder;
			this.dgrdData.Name = "dgrdData";
			this.dgrdData.PictureAddnewRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureAddnewRow")));
			this.dgrdData.PictureCurrentRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureCurrentRow")));
			this.dgrdData.PictureFilterBar = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureFilterBar")));
			this.dgrdData.PictureFooterRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureFooterRow")));
			this.dgrdData.PictureHeaderRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureHeaderRow")));
			this.dgrdData.PictureModifiedRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureModifiedRow")));
			this.dgrdData.PictureStandardRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureStandardRow")));
			this.dgrdData.PreviewInfo.AllowSizing = ((bool)(resources.GetObject("dgrdData.PreviewInfo.AllowSizing")));
			this.dgrdData.PreviewInfo.Caption = resources.GetString("dgrdData.PreviewInfo.Caption");
			this.dgrdData.PreviewInfo.Location = ((System.Drawing.Point)(resources.GetObject("dgrdData.PreviewInfo.Location")));
			this.dgrdData.PreviewInfo.Size = ((System.Drawing.Size)(resources.GetObject("dgrdData.PreviewInfo.Size")));
			this.dgrdData.PreviewInfo.ToolBars = ((bool)(resources.GetObject("dgrdData.PreviewInfo.ToolBars")));
			this.dgrdData.PreviewInfo.UIStrings.Content = ((string[])(resources.GetObject("dgrdData.PreviewInfo.UIStrings.Content")));
			this.dgrdData.PreviewInfo.ZoomFactor = ((System.Double)(resources.GetObject("dgrdData.PreviewInfo.ZoomFactor")));
			this.dgrdData.PrintInfo.MaxRowHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.MaxRowHeight")));
			this.dgrdData.PrintInfo.OwnerDrawPageFooter = ((bool)(resources.GetObject("dgrdData.PrintInfo.OwnerDrawPageFooter")));
			this.dgrdData.PrintInfo.OwnerDrawPageHeader = ((bool)(resources.GetObject("dgrdData.PrintInfo.OwnerDrawPageHeader")));
			this.dgrdData.PrintInfo.PageFooter = resources.GetString("dgrdData.PrintInfo.PageFooter");
			this.dgrdData.PrintInfo.PageFooterHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.PageFooterHeight")));
			this.dgrdData.PrintInfo.PageHeader = resources.GetString("dgrdData.PrintInfo.PageHeader");
			this.dgrdData.PrintInfo.PageHeaderHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.PageHeaderHeight")));
			this.dgrdData.PrintInfo.PrintHorizontalSplits = ((bool)(resources.GetObject("dgrdData.PrintInfo.PrintHorizontalSplits")));
			this.dgrdData.PrintInfo.ProgressCaption = resources.GetString("dgrdData.PrintInfo.ProgressCaption");
			this.dgrdData.PrintInfo.RepeatColumnFooters = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatColumnFooters")));
			this.dgrdData.PrintInfo.RepeatColumnHeaders = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatColumnHeaders")));
			this.dgrdData.PrintInfo.RepeatGridHeader = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatGridHeader")));
			this.dgrdData.PrintInfo.RepeatSplitHeaders = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatSplitHeaders")));
			this.dgrdData.PrintInfo.ShowOptionsDialog = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowOptionsDialog")));
			this.dgrdData.PrintInfo.ShowProgressForm = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowProgressForm")));
			this.dgrdData.PrintInfo.ShowSelection = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowSelection")));
			this.dgrdData.PrintInfo.UseGridColors = ((bool)(resources.GetObject("dgrdData.PrintInfo.UseGridColors")));
			this.dgrdData.RecordSelectors = ((bool)(resources.GetObject("dgrdData.RecordSelectors")));
			this.dgrdData.RecordSelectorWidth = ((int)(resources.GetObject("dgrdData.RecordSelectorWidth")));
			this.dgrdData.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dgrdData.RightToLeft")));
			this.dgrdData.RowDivider.Color = ((System.Drawing.Color)(resources.GetObject("resource.Color")));
			this.dgrdData.RowDivider.Style = ((C1.Win.C1TrueDBGrid.LineStyleEnum)(resources.GetObject("resource.Style")));
			this.dgrdData.RowHeight = ((int)(resources.GetObject("dgrdData.RowHeight")));
			this.dgrdData.RowSubDividerColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.RowSubDividerColor")));
			this.dgrdData.ScrollTips = ((bool)(resources.GetObject("dgrdData.ScrollTips")));
			this.dgrdData.ScrollTrack = ((bool)(resources.GetObject("dgrdData.ScrollTrack")));
			this.dgrdData.Size = ((System.Drawing.Size)(resources.GetObject("dgrdData.Size")));
			this.dgrdData.SpringMode = ((bool)(resources.GetObject("dgrdData.SpringMode")));
			this.dgrdData.TabAcrossSplits = ((bool)(resources.GetObject("dgrdData.TabAcrossSplits")));
			this.dgrdData.TabIndex = ((int)(resources.GetObject("dgrdData.TabIndex")));
			this.dgrdData.Text = resources.GetString("dgrdData.Text");
			this.dgrdData.ViewCaptionWidth = ((int)(resources.GetObject("dgrdData.ViewCaptionWidth")));
			this.dgrdData.ViewColumnWidth = ((int)(resources.GetObject("dgrdData.ViewColumnWidth")));
			this.dgrdData.Visible = ((bool)(resources.GetObject("dgrdData.Visible")));
			this.dgrdData.WrapCellPointer = ((bool)(resources.GetObject("dgrdData.WrapCellPointer")));
			this.dgrdData.RowColChange += new C1.Win.C1TrueDBGrid.RowColChangeEventHandler(this.dgrdData_RowColChange);
			this.dgrdData.AfterColUpdate += new C1.Win.C1TrueDBGrid.ColEventHandler(this.dgrdData_AfterColUpdate);
			this.dgrdData.BeforeColUpdate += new C1.Win.C1TrueDBGrid.BeforeColUpdateEventHandler(this.dgrdData_BeforeColUpdate);
			this.dgrdData.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgrdData_KeyDown);
			this.dgrdData.PropBag = resources.GetString("dgrdData.PropBag");
			// 
			// txtFCode
			// 
			this.txtFCode.AccessibleDescription = resources.GetString("txtFCode.AccessibleDescription");
			this.txtFCode.AccessibleName = resources.GetString("txtFCode.AccessibleName");
			this.txtFCode.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtFCode.Anchor")));
			this.txtFCode.AutoSize = ((bool)(resources.GetObject("txtFCode.AutoSize")));
			this.txtFCode.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtFCode.BackgroundImage")));
			this.txtFCode.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtFCode.Dock")));
			this.txtFCode.Enabled = ((bool)(resources.GetObject("txtFCode.Enabled")));
			this.txtFCode.Font = ((System.Drawing.Font)(resources.GetObject("txtFCode.Font")));
			this.txtFCode.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtFCode.ImeMode")));
			this.txtFCode.Location = ((System.Drawing.Point)(resources.GetObject("txtFCode.Location")));
			this.txtFCode.MaxLength = ((int)(resources.GetObject("txtFCode.MaxLength")));
			this.txtFCode.Multiline = ((bool)(resources.GetObject("txtFCode.Multiline")));
			this.txtFCode.Name = "txtFCode";
			this.txtFCode.PasswordChar = ((char)(resources.GetObject("txtFCode.PasswordChar")));
			this.txtFCode.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtFCode.RightToLeft")));
			this.txtFCode.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtFCode.ScrollBars")));
			this.txtFCode.Size = ((System.Drawing.Size)(resources.GetObject("txtFCode.Size")));
			this.txtFCode.TabIndex = ((int)(resources.GetObject("txtFCode.TabIndex")));
			this.txtFCode.Text = resources.GetString("txtFCode.Text");
			this.txtFCode.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtFCode.TextAlign")));
			this.txtFCode.Visible = ((bool)(resources.GetObject("txtFCode.Visible")));
			this.txtFCode.WordWrap = ((bool)(resources.GetObject("txtFCode.WordWrap")));
			this.txtFCode.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtFCode_KeyDown);
			this.txtFCode.Validating += new System.ComponentModel.CancelEventHandler(this.txtFCode_Validating);
			// 
			// txtTransNo
			// 
			this.txtTransNo.AccessibleDescription = resources.GetString("txtTransNo.AccessibleDescription");
			this.txtTransNo.AccessibleName = resources.GetString("txtTransNo.AccessibleName");
			this.txtTransNo.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtTransNo.Anchor")));
			this.txtTransNo.AutoSize = ((bool)(resources.GetObject("txtTransNo.AutoSize")));
			this.txtTransNo.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtTransNo.BackgroundImage")));
			this.txtTransNo.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtTransNo.Dock")));
			this.txtTransNo.Enabled = ((bool)(resources.GetObject("txtTransNo.Enabled")));
			this.txtTransNo.Font = ((System.Drawing.Font)(resources.GetObject("txtTransNo.Font")));
			this.txtTransNo.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtTransNo.ImeMode")));
			this.txtTransNo.Location = ((System.Drawing.Point)(resources.GetObject("txtTransNo.Location")));
			this.txtTransNo.MaxLength = ((int)(resources.GetObject("txtTransNo.MaxLength")));
			this.txtTransNo.Multiline = ((bool)(resources.GetObject("txtTransNo.Multiline")));
			this.txtTransNo.Name = "txtTransNo";
			this.txtTransNo.PasswordChar = ((char)(resources.GetObject("txtTransNo.PasswordChar")));
			this.txtTransNo.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtTransNo.RightToLeft")));
			this.txtTransNo.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtTransNo.ScrollBars")));
			this.txtTransNo.Size = ((System.Drawing.Size)(resources.GetObject("txtTransNo.Size")));
			this.txtTransNo.TabIndex = ((int)(resources.GetObject("txtTransNo.TabIndex")));
			this.txtTransNo.Text = resources.GetString("txtTransNo.Text");
			this.txtTransNo.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtTransNo.TextAlign")));
			this.txtTransNo.Visible = ((bool)(resources.GetObject("txtTransNo.Visible")));
			this.txtTransNo.WordWrap = ((bool)(resources.GetObject("txtTransNo.WordWrap")));
			this.txtTransNo.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtTransNo_KeyDown);
			this.txtTransNo.Validating += new System.ComponentModel.CancelEventHandler(this.txtTransNo_Validating);
			// 
			// btnTransNo
			// 
			this.btnTransNo.AccessibleDescription = resources.GetString("btnTransNo.AccessibleDescription");
			this.btnTransNo.AccessibleName = resources.GetString("btnTransNo.AccessibleName");
			this.btnTransNo.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnTransNo.Anchor")));
			this.btnTransNo.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnTransNo.BackgroundImage")));
			this.btnTransNo.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnTransNo.Dock")));
			this.btnTransNo.Enabled = ((bool)(resources.GetObject("btnTransNo.Enabled")));
			this.btnTransNo.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnTransNo.FlatStyle")));
			this.btnTransNo.Font = ((System.Drawing.Font)(resources.GetObject("btnTransNo.Font")));
			this.btnTransNo.Image = ((System.Drawing.Image)(resources.GetObject("btnTransNo.Image")));
			this.btnTransNo.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnTransNo.ImageAlign")));
			this.btnTransNo.ImageIndex = ((int)(resources.GetObject("btnTransNo.ImageIndex")));
			this.btnTransNo.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnTransNo.ImeMode")));
			this.btnTransNo.Location = ((System.Drawing.Point)(resources.GetObject("btnTransNo.Location")));
			this.btnTransNo.Name = "btnTransNo";
			this.btnTransNo.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnTransNo.RightToLeft")));
			this.btnTransNo.Size = ((System.Drawing.Size)(resources.GetObject("btnTransNo.Size")));
			this.btnTransNo.TabIndex = ((int)(resources.GetObject("btnTransNo.TabIndex")));
			this.btnTransNo.Text = resources.GetString("btnTransNo.Text");
			this.btnTransNo.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnTransNo.TextAlign")));
			this.btnTransNo.Visible = ((bool)(resources.GetObject("btnTransNo.Visible")));
			this.btnTransNo.Click += new System.EventHandler(this.btnTransNo_Click);
			// 
			// btnGoodsCode
			// 
			this.btnGoodsCode.AccessibleDescription = resources.GetString("btnGoodsCode.AccessibleDescription");
			this.btnGoodsCode.AccessibleName = resources.GetString("btnGoodsCode.AccessibleName");
			this.btnGoodsCode.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnGoodsCode.Anchor")));
			this.btnGoodsCode.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnGoodsCode.BackgroundImage")));
			this.btnGoodsCode.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnGoodsCode.Dock")));
			this.btnGoodsCode.Enabled = ((bool)(resources.GetObject("btnGoodsCode.Enabled")));
			this.btnGoodsCode.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnGoodsCode.FlatStyle")));
			this.btnGoodsCode.Font = ((System.Drawing.Font)(resources.GetObject("btnGoodsCode.Font")));
			this.btnGoodsCode.Image = ((System.Drawing.Image)(resources.GetObject("btnGoodsCode.Image")));
			this.btnGoodsCode.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnGoodsCode.ImageAlign")));
			this.btnGoodsCode.ImageIndex = ((int)(resources.GetObject("btnGoodsCode.ImageIndex")));
			this.btnGoodsCode.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnGoodsCode.ImeMode")));
			this.btnGoodsCode.Location = ((System.Drawing.Point)(resources.GetObject("btnGoodsCode.Location")));
			this.btnGoodsCode.Name = "btnGoodsCode";
			this.btnGoodsCode.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnGoodsCode.RightToLeft")));
			this.btnGoodsCode.Size = ((System.Drawing.Size)(resources.GetObject("btnGoodsCode.Size")));
			this.btnGoodsCode.TabIndex = ((int)(resources.GetObject("btnGoodsCode.TabIndex")));
			this.btnGoodsCode.Text = resources.GetString("btnGoodsCode.Text");
			this.btnGoodsCode.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnGoodsCode.TextAlign")));
			this.btnGoodsCode.Visible = ((bool)(resources.GetObject("btnGoodsCode.Visible")));
			this.btnGoodsCode.Click += new System.EventHandler(this.btnGoodsCode_Click);
			// 
			// lblTransNo
			// 
			this.lblTransNo.AccessibleDescription = resources.GetString("lblTransNo.AccessibleDescription");
			this.lblTransNo.AccessibleName = resources.GetString("lblTransNo.AccessibleName");
			this.lblTransNo.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblTransNo.Anchor")));
			this.lblTransNo.AutoSize = ((bool)(resources.GetObject("lblTransNo.AutoSize")));
			this.lblTransNo.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblTransNo.Dock")));
			this.lblTransNo.Enabled = ((bool)(resources.GetObject("lblTransNo.Enabled")));
			this.lblTransNo.Font = ((System.Drawing.Font)(resources.GetObject("lblTransNo.Font")));
			this.lblTransNo.ForeColor = System.Drawing.Color.Maroon;
			this.lblTransNo.Image = ((System.Drawing.Image)(resources.GetObject("lblTransNo.Image")));
			this.lblTransNo.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTransNo.ImageAlign")));
			this.lblTransNo.ImageIndex = ((int)(resources.GetObject("lblTransNo.ImageIndex")));
			this.lblTransNo.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblTransNo.ImeMode")));
			this.lblTransNo.Location = ((System.Drawing.Point)(resources.GetObject("lblTransNo.Location")));
			this.lblTransNo.Name = "lblTransNo";
			this.lblTransNo.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblTransNo.RightToLeft")));
			this.lblTransNo.Size = ((System.Drawing.Size)(resources.GetObject("lblTransNo.Size")));
			this.lblTransNo.TabIndex = ((int)(resources.GetObject("lblTransNo.TabIndex")));
			this.lblTransNo.Text = resources.GetString("lblTransNo.Text");
			this.lblTransNo.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTransNo.TextAlign")));
			this.lblTransNo.Visible = ((bool)(resources.GetObject("lblTransNo.Visible")));
			// 
			// lblPostDate
			// 
			this.lblPostDate.AccessibleDescription = resources.GetString("lblPostDate.AccessibleDescription");
			this.lblPostDate.AccessibleName = resources.GetString("lblPostDate.AccessibleName");
			this.lblPostDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblPostDate.Anchor")));
			this.lblPostDate.AutoSize = ((bool)(resources.GetObject("lblPostDate.AutoSize")));
			this.lblPostDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblPostDate.Dock")));
			this.lblPostDate.Enabled = ((bool)(resources.GetObject("lblPostDate.Enabled")));
			this.lblPostDate.Font = ((System.Drawing.Font)(resources.GetObject("lblPostDate.Font")));
			this.lblPostDate.ForeColor = System.Drawing.Color.Maroon;
			this.lblPostDate.Image = ((System.Drawing.Image)(resources.GetObject("lblPostDate.Image")));
			this.lblPostDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPostDate.ImageAlign")));
			this.lblPostDate.ImageIndex = ((int)(resources.GetObject("lblPostDate.ImageIndex")));
			this.lblPostDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblPostDate.ImeMode")));
			this.lblPostDate.Location = ((System.Drawing.Point)(resources.GetObject("lblPostDate.Location")));
			this.lblPostDate.Name = "lblPostDate";
			this.lblPostDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblPostDate.RightToLeft")));
			this.lblPostDate.Size = ((System.Drawing.Size)(resources.GetObject("lblPostDate.Size")));
			this.lblPostDate.TabIndex = ((int)(resources.GetObject("lblPostDate.TabIndex")));
			this.lblPostDate.Text = resources.GetString("lblPostDate.Text");
			this.lblPostDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPostDate.TextAlign")));
			this.lblPostDate.Visible = ((bool)(resources.GetObject("lblPostDate.Visible")));
			// 
			// lblInvoiceNo
			// 
			this.lblInvoiceNo.AccessibleDescription = resources.GetString("lblInvoiceNo.AccessibleDescription");
			this.lblInvoiceNo.AccessibleName = resources.GetString("lblInvoiceNo.AccessibleName");
			this.lblInvoiceNo.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblInvoiceNo.Anchor")));
			this.lblInvoiceNo.AutoSize = ((bool)(resources.GetObject("lblInvoiceNo.AutoSize")));
			this.lblInvoiceNo.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblInvoiceNo.Dock")));
			this.lblInvoiceNo.Enabled = ((bool)(resources.GetObject("lblInvoiceNo.Enabled")));
			this.lblInvoiceNo.Font = ((System.Drawing.Font)(resources.GetObject("lblInvoiceNo.Font")));
			this.lblInvoiceNo.ForeColor = System.Drawing.Color.Maroon;
			this.lblInvoiceNo.Image = ((System.Drawing.Image)(resources.GetObject("lblInvoiceNo.Image")));
			this.lblInvoiceNo.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblInvoiceNo.ImageAlign")));
			this.lblInvoiceNo.ImageIndex = ((int)(resources.GetObject("lblInvoiceNo.ImageIndex")));
			this.lblInvoiceNo.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblInvoiceNo.ImeMode")));
			this.lblInvoiceNo.Location = ((System.Drawing.Point)(resources.GetObject("lblInvoiceNo.Location")));
			this.lblInvoiceNo.Name = "lblInvoiceNo";
			this.lblInvoiceNo.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblInvoiceNo.RightToLeft")));
			this.lblInvoiceNo.Size = ((System.Drawing.Size)(resources.GetObject("lblInvoiceNo.Size")));
			this.lblInvoiceNo.TabIndex = ((int)(resources.GetObject("lblInvoiceNo.TabIndex")));
			this.lblInvoiceNo.Text = resources.GetString("lblInvoiceNo.Text");
			this.lblInvoiceNo.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblInvoiceNo.TextAlign")));
			this.lblInvoiceNo.Visible = ((bool)(resources.GetObject("lblInvoiceNo.Visible")));
			// 
			// dtmTransDate
			// 
			this.dtmTransDate.AcceptsEscape = ((bool)(resources.GetObject("dtmTransDate.AcceptsEscape")));
			this.dtmTransDate.AccessibleDescription = resources.GetString("dtmTransDate.AccessibleDescription");
			this.dtmTransDate.AccessibleName = resources.GetString("dtmTransDate.AccessibleName");
			this.dtmTransDate.ValueIsDbNull = false;
			this.dtmTransDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmTransDate.Anchor")));
			this.dtmTransDate.AutoSize = ((bool)(resources.GetObject("dtmTransDate.AutoSize")));
			this.dtmTransDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmTransDate.BackgroundImage")));
			this.dtmTransDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmTransDate.BorderStyle")));
			// 
			// dtmTransDate.Calendar
			// 
			this.dtmTransDate.Calendar.AccessibleDescription = resources.GetString("dtmTransDate.Calendar.AccessibleDescription");
			this.dtmTransDate.Calendar.AccessibleName = resources.GetString("dtmTransDate.Calendar.AccessibleName");
			this.dtmTransDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmTransDate.Calendar.AnnuallyBoldedDates")));
			this.dtmTransDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmTransDate.Calendar.BackgroundImage")));
			this.dtmTransDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmTransDate.Calendar.BoldedDates")));
			this.dtmTransDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmTransDate.Calendar.CalendarDimensions")));
			this.dtmTransDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmTransDate.Calendar.Enabled")));
			this.dtmTransDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmTransDate.Calendar.FirstDayOfWeek")));
			this.dtmTransDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmTransDate.Calendar.Font")));
			this.dtmTransDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmTransDate.Calendar.ImeMode")));
			this.dtmTransDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmTransDate.Calendar.MonthlyBoldedDates")));
			this.dtmTransDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmTransDate.Calendar.RightToLeft")));
			this.dtmTransDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmTransDate.Calendar.ShowClearButton")));
			this.dtmTransDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmTransDate.Calendar.ShowTodayButton")));
			this.dtmTransDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmTransDate.Calendar.ShowWeekNumbers")));
			this.dtmTransDate.CaseSensitive = ((bool)(resources.GetObject("dtmTransDate.CaseSensitive")));
			this.dtmTransDate.Culture = ((int)(resources.GetObject("dtmTransDate.Culture")));
			this.dtmTransDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmTransDate.CurrentTimeZone")));
			this.dtmTransDate.CustomFormat = resources.GetString("dtmTransDate.CustomFormat");
			this.dtmTransDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmTransDate.DaylightTimeAdjustment")));
			this.dtmTransDate.DisplayFormat.CustomFormat = resources.GetString("dtmTransDate.DisplayFormat.CustomFormat");
			this.dtmTransDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmTransDate.DisplayFormat.FormatType")));
			this.dtmTransDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmTransDate.DisplayFormat.Inherit")));
			this.dtmTransDate.DisplayFormat.NullText = resources.GetString("dtmTransDate.DisplayFormat.NullText");
			this.dtmTransDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmTransDate.DisplayFormat.TrimEnd")));
			this.dtmTransDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmTransDate.DisplayFormat.TrimStart")));
			this.dtmTransDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmTransDate.Dock")));
			this.dtmTransDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmTransDate.DropDownFormAlign")));
			this.dtmTransDate.EditFormat.CustomFormat = resources.GetString("dtmTransDate.EditFormat.CustomFormat");
			this.dtmTransDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmTransDate.EditFormat.FormatType")));
			this.dtmTransDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmTransDate.EditFormat.Inherit")));
			this.dtmTransDate.EditFormat.NullText = resources.GetString("dtmTransDate.EditFormat.NullText");
			this.dtmTransDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmTransDate.EditFormat.TrimEnd")));
			this.dtmTransDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmTransDate.EditFormat.TrimStart")));
			this.dtmTransDate.EditMask = resources.GetString("dtmTransDate.EditMask");
			this.dtmTransDate.EmptyAsNull = ((bool)(resources.GetObject("dtmTransDate.EmptyAsNull")));
			this.dtmTransDate.Enabled = ((bool)(resources.GetObject("dtmTransDate.Enabled")));
			this.dtmTransDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmTransDate.ErrorInfo.BeepOnError")));
			this.dtmTransDate.ErrorInfo.ErrorMessage = resources.GetString("dtmTransDate.ErrorInfo.ErrorMessage");
			this.dtmTransDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmTransDate.ErrorInfo.ErrorMessageCaption");
			this.dtmTransDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmTransDate.ErrorInfo.ShowErrorMessage")));
			this.dtmTransDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmTransDate.ErrorInfo.ValueOnError")));
			this.dtmTransDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmTransDate.Font")));
			this.dtmTransDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmTransDate.FormatType")));
			this.dtmTransDate.GapHeight = ((int)(resources.GetObject("dtmTransDate.GapHeight")));
			this.dtmTransDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmTransDate.GMTOffset")));
			this.dtmTransDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmTransDate.ImeMode")));
			this.dtmTransDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmTransDate.InitialSelection")));
			this.dtmTransDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmTransDate.Location")));
			this.dtmTransDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmTransDate.MaskInfo.AutoTabWhenFilled")));
			this.dtmTransDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmTransDate.MaskInfo.CaseSensitive")));
			this.dtmTransDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmTransDate.MaskInfo.CopyWithLiterals")));
			this.dtmTransDate.MaskInfo.EditMask = resources.GetString("dtmTransDate.MaskInfo.EditMask");
			this.dtmTransDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmTransDate.MaskInfo.EmptyAsNull")));
			this.dtmTransDate.MaskInfo.ErrorMessage = resources.GetString("dtmTransDate.MaskInfo.ErrorMessage");
			this.dtmTransDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmTransDate.MaskInfo.Inherit")));
			this.dtmTransDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmTransDate.MaskInfo.PromptChar")));
			this.dtmTransDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmTransDate.MaskInfo.ShowLiterals")));
			this.dtmTransDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmTransDate.MaskInfo.StoredEmptyChar")));
			this.dtmTransDate.MaxLength = ((int)(resources.GetObject("dtmTransDate.MaxLength")));
			this.dtmTransDate.Name = "dtmTransDate";
			this.dtmTransDate.NullText = resources.GetString("dtmTransDate.NullText");
			this.dtmTransDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmTransDate.ParseInfo.CaseSensitive")));
			this.dtmTransDate.ParseInfo.CustomFormat = resources.GetString("dtmTransDate.ParseInfo.CustomFormat");
			this.dtmTransDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmTransDate.ParseInfo.DateTimeStyle")));
			this.dtmTransDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmTransDate.ParseInfo.EmptyAsNull")));
			this.dtmTransDate.ParseInfo.ErrorMessage = resources.GetString("dtmTransDate.ParseInfo.ErrorMessage");
			this.dtmTransDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmTransDate.ParseInfo.FormatType")));
			this.dtmTransDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmTransDate.ParseInfo.Inherit")));
			this.dtmTransDate.ParseInfo.NullText = resources.GetString("dtmTransDate.ParseInfo.NullText");
			this.dtmTransDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmTransDate.ParseInfo.TrimEnd")));
			this.dtmTransDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmTransDate.ParseInfo.TrimStart")));
			this.dtmTransDate.PasswordChar = ((char)(resources.GetObject("dtmTransDate.PasswordChar")));
			this.dtmTransDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmTransDate.PostValidation.CaseSensitive")));
			this.dtmTransDate.PostValidation.ErrorMessage = resources.GetString("dtmTransDate.PostValidation.ErrorMessage");
			this.dtmTransDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmTransDate.PostValidation.Inherit")));
			this.dtmTransDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmTransDate.PostValidation.Validation")));
			this.dtmTransDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmTransDate.PostValidation.Values")));
			this.dtmTransDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmTransDate.PostValidation.ValuesExcluded")));
			this.dtmTransDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmTransDate.PreValidation.CaseSensitive")));
			this.dtmTransDate.PreValidation.ErrorMessage = resources.GetString("dtmTransDate.PreValidation.ErrorMessage");
			this.dtmTransDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmTransDate.PreValidation.Inherit")));
			this.dtmTransDate.PreValidation.ItemSeparator = resources.GetString("dtmTransDate.PreValidation.ItemSeparator");
			this.dtmTransDate.PreValidation.PatternString = resources.GetString("dtmTransDate.PreValidation.PatternString");
			this.dtmTransDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmTransDate.PreValidation.RegexOptions")));
			this.dtmTransDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmTransDate.PreValidation.TrimEnd")));
			this.dtmTransDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmTransDate.PreValidation.TrimStart")));
			this.dtmTransDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmTransDate.PreValidation.Validation")));
			this.dtmTransDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmTransDate.RightToLeft")));
			this.dtmTransDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmTransDate.ShowFocusRectangle")));
			this.dtmTransDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmTransDate.Size")));
			this.dtmTransDate.TabIndex = ((int)(resources.GetObject("dtmTransDate.TabIndex")));
			this.dtmTransDate.Tag = ((object)(resources.GetObject("dtmTransDate.Tag")));
			this.dtmTransDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmTransDate.TextAlign")));
			this.dtmTransDate.TrimEnd = ((bool)(resources.GetObject("dtmTransDate.TrimEnd")));
			this.dtmTransDate.TrimStart = ((bool)(resources.GetObject("dtmTransDate.TrimStart")));
			this.dtmTransDate.UserCultureOverride = ((bool)(resources.GetObject("dtmTransDate.UserCultureOverride")));
			this.dtmTransDate.Value = ((object)(resources.GetObject("dtmTransDate.Value")));
			this.dtmTransDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmTransDate.VerticalAlign")));
			this.dtmTransDate.Visible = ((bool)(resources.GetObject("dtmTransDate.Visible")));
			this.dtmTransDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmTransDate.VisibleButtons")));
			// 
			// btnSearch
			// 
			this.btnSearch.AccessibleDescription = resources.GetString("btnSearch.AccessibleDescription");
			this.btnSearch.AccessibleName = resources.GetString("btnSearch.AccessibleName");
			this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSearch.Anchor")));
			this.btnSearch.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSearch.BackgroundImage")));
			this.btnSearch.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSearch.Dock")));
			this.btnSearch.Enabled = ((bool)(resources.GetObject("btnSearch.Enabled")));
			this.btnSearch.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSearch.FlatStyle")));
			this.btnSearch.Font = ((System.Drawing.Font)(resources.GetObject("btnSearch.Font")));
			this.btnSearch.Image = ((System.Drawing.Image)(resources.GetObject("btnSearch.Image")));
			this.btnSearch.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearch.ImageAlign")));
			this.btnSearch.ImageIndex = ((int)(resources.GetObject("btnSearch.ImageIndex")));
			this.btnSearch.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSearch.ImeMode")));
			this.btnSearch.Location = ((System.Drawing.Point)(resources.GetObject("btnSearch.Location")));
			this.btnSearch.Name = "btnSearch";
			this.btnSearch.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSearch.RightToLeft")));
			this.btnSearch.Size = ((System.Drawing.Size)(resources.GetObject("btnSearch.Size")));
			this.btnSearch.TabIndex = ((int)(resources.GetObject("btnSearch.TabIndex")));
			this.btnSearch.Text = resources.GetString("btnSearch.Text");
			this.btnSearch.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearch.TextAlign")));
			this.btnSearch.Visible = ((bool)(resources.GetObject("btnSearch.Visible")));
			this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
			// 
			// btnEdit
			// 
			this.btnEdit.AccessibleDescription = resources.GetString("btnEdit.AccessibleDescription");
			this.btnEdit.AccessibleName = resources.GetString("btnEdit.AccessibleName");
			this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnEdit.Anchor")));
			this.btnEdit.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnEdit.BackgroundImage")));
			this.btnEdit.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnEdit.Dock")));
			this.btnEdit.Enabled = ((bool)(resources.GetObject("btnEdit.Enabled")));
			this.btnEdit.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnEdit.FlatStyle")));
			this.btnEdit.Font = ((System.Drawing.Font)(resources.GetObject("btnEdit.Font")));
			this.btnEdit.Image = ((System.Drawing.Image)(resources.GetObject("btnEdit.Image")));
			this.btnEdit.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnEdit.ImageAlign")));
			this.btnEdit.ImageIndex = ((int)(resources.GetObject("btnEdit.ImageIndex")));
			this.btnEdit.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnEdit.ImeMode")));
			this.btnEdit.Location = ((System.Drawing.Point)(resources.GetObject("btnEdit.Location")));
			this.btnEdit.Name = "btnEdit";
			this.btnEdit.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnEdit.RightToLeft")));
			this.btnEdit.Size = ((System.Drawing.Size)(resources.GetObject("btnEdit.Size")));
			this.btnEdit.TabIndex = ((int)(resources.GetObject("btnEdit.TabIndex")));
			this.btnEdit.Text = resources.GetString("btnEdit.Text");
			this.btnEdit.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnEdit.TextAlign")));
			this.btnEdit.Visible = ((bool)(resources.GetObject("btnEdit.Visible")));
			this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
			// 
			// btnClose
			// 
			this.btnClose.AccessibleDescription = resources.GetString("btnClose.AccessibleDescription");
			this.btnClose.AccessibleName = resources.GetString("btnClose.AccessibleName");
			this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClose.Anchor")));
			this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
			this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnClose.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClose.Dock")));
			this.btnClose.Enabled = ((bool)(resources.GetObject("btnClose.Enabled")));
			this.btnClose.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClose.FlatStyle")));
			this.btnClose.Font = ((System.Drawing.Font)(resources.GetObject("btnClose.Font")));
			this.btnClose.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
			this.btnClose.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.ImageAlign")));
			this.btnClose.ImageIndex = ((int)(resources.GetObject("btnClose.ImageIndex")));
			this.btnClose.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClose.ImeMode")));
			this.btnClose.Location = ((System.Drawing.Point)(resources.GetObject("btnClose.Location")));
			this.btnClose.Name = "btnClose";
			this.btnClose.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClose.RightToLeft")));
			this.btnClose.Size = ((System.Drawing.Size)(resources.GetObject("btnClose.Size")));
			this.btnClose.TabIndex = ((int)(resources.GetObject("btnClose.TabIndex")));
			this.btnClose.Text = resources.GetString("btnClose.Text");
			this.btnClose.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.TextAlign")));
			this.btnClose.Visible = ((bool)(resources.GetObject("btnClose.Visible")));
			this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
			// 
			// btnHelp
			// 
			this.btnHelp.AccessibleDescription = resources.GetString("btnHelp.AccessibleDescription");
			this.btnHelp.AccessibleName = resources.GetString("btnHelp.AccessibleName");
			this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnHelp.Anchor")));
			this.btnHelp.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnHelp.BackgroundImage")));
			this.btnHelp.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnHelp.Dock")));
			this.btnHelp.Enabled = ((bool)(resources.GetObject("btnHelp.Enabled")));
			this.btnHelp.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnHelp.FlatStyle")));
			this.btnHelp.Font = ((System.Drawing.Font)(resources.GetObject("btnHelp.Font")));
			this.btnHelp.Image = ((System.Drawing.Image)(resources.GetObject("btnHelp.Image")));
			this.btnHelp.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.ImageAlign")));
			this.btnHelp.ImageIndex = ((int)(resources.GetObject("btnHelp.ImageIndex")));
			this.btnHelp.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnHelp.ImeMode")));
			this.btnHelp.Location = ((System.Drawing.Point)(resources.GetObject("btnHelp.Location")));
			this.btnHelp.Name = "btnHelp";
			this.btnHelp.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnHelp.RightToLeft")));
			this.btnHelp.Size = ((System.Drawing.Size)(resources.GetObject("btnHelp.Size")));
			this.btnHelp.TabIndex = ((int)(resources.GetObject("btnHelp.TabIndex")));
			this.btnHelp.Text = resources.GetString("btnHelp.Text");
			this.btnHelp.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.TextAlign")));
			this.btnHelp.Visible = ((bool)(resources.GetObject("btnHelp.Visible")));
			// 
			// btnSave
			// 
			this.btnSave.AccessibleDescription = resources.GetString("btnSave.AccessibleDescription");
			this.btnSave.AccessibleName = resources.GetString("btnSave.AccessibleName");
			this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSave.Anchor")));
			this.btnSave.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSave.BackgroundImage")));
			this.btnSave.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSave.Dock")));
			this.btnSave.Enabled = ((bool)(resources.GetObject("btnSave.Enabled")));
			this.btnSave.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSave.FlatStyle")));
			this.btnSave.Font = ((System.Drawing.Font)(resources.GetObject("btnSave.Font")));
			this.btnSave.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.Image")));
			this.btnSave.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSave.ImageAlign")));
			this.btnSave.ImageIndex = ((int)(resources.GetObject("btnSave.ImageIndex")));
			this.btnSave.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSave.ImeMode")));
			this.btnSave.Location = ((System.Drawing.Point)(resources.GetObject("btnSave.Location")));
			this.btnSave.Name = "btnSave";
			this.btnSave.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSave.RightToLeft")));
			this.btnSave.Size = ((System.Drawing.Size)(resources.GetObject("btnSave.Size")));
			this.btnSave.TabIndex = ((int)(resources.GetObject("btnSave.TabIndex")));
			this.btnSave.Text = resources.GetString("btnSave.Text");
			this.btnSave.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSave.TextAlign")));
			this.btnSave.Visible = ((bool)(resources.GetObject("btnSave.Visible")));
			this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
			// 
			// btnAdd
			// 
			this.btnAdd.AccessibleDescription = resources.GetString("btnAdd.AccessibleDescription");
			this.btnAdd.AccessibleName = resources.GetString("btnAdd.AccessibleName");
			this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnAdd.Anchor")));
			this.btnAdd.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnAdd.BackgroundImage")));
			this.btnAdd.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnAdd.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnAdd.Dock")));
			this.btnAdd.Enabled = ((bool)(resources.GetObject("btnAdd.Enabled")));
			this.btnAdd.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnAdd.FlatStyle")));
			this.btnAdd.Font = ((System.Drawing.Font)(resources.GetObject("btnAdd.Font")));
			this.btnAdd.Image = ((System.Drawing.Image)(resources.GetObject("btnAdd.Image")));
			this.btnAdd.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnAdd.ImageAlign")));
			this.btnAdd.ImageIndex = ((int)(resources.GetObject("btnAdd.ImageIndex")));
			this.btnAdd.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnAdd.ImeMode")));
			this.btnAdd.Location = ((System.Drawing.Point)(resources.GetObject("btnAdd.Location")));
			this.btnAdd.Name = "btnAdd";
			this.btnAdd.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnAdd.RightToLeft")));
			this.btnAdd.Size = ((System.Drawing.Size)(resources.GetObject("btnAdd.Size")));
			this.btnAdd.TabIndex = ((int)(resources.GetObject("btnAdd.TabIndex")));
			this.btnAdd.Text = resources.GetString("btnAdd.Text");
			this.btnAdd.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnAdd.TextAlign")));
			this.btnAdd.Visible = ((bool)(resources.GetObject("btnAdd.Visible")));
			this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
			// 
			// chkCompleted
			// 
			this.chkCompleted.AccessibleDescription = resources.GetString("chkCompleted.AccessibleDescription");
			this.chkCompleted.AccessibleName = resources.GetString("chkCompleted.AccessibleName");
			this.chkCompleted.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("chkCompleted.Anchor")));
			this.chkCompleted.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("chkCompleted.Appearance")));
			this.chkCompleted.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("chkCompleted.BackgroundImage")));
			this.chkCompleted.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkCompleted.CheckAlign")));
			this.chkCompleted.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("chkCompleted.Dock")));
			this.chkCompleted.Enabled = ((bool)(resources.GetObject("chkCompleted.Enabled")));
			this.chkCompleted.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("chkCompleted.FlatStyle")));
			this.chkCompleted.Font = ((System.Drawing.Font)(resources.GetObject("chkCompleted.Font")));
			this.chkCompleted.Image = ((System.Drawing.Image)(resources.GetObject("chkCompleted.Image")));
			this.chkCompleted.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkCompleted.ImageAlign")));
			this.chkCompleted.ImageIndex = ((int)(resources.GetObject("chkCompleted.ImageIndex")));
			this.chkCompleted.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("chkCompleted.ImeMode")));
			this.chkCompleted.Location = ((System.Drawing.Point)(resources.GetObject("chkCompleted.Location")));
			this.chkCompleted.Name = "chkCompleted";
			this.chkCompleted.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("chkCompleted.RightToLeft")));
			this.chkCompleted.Size = ((System.Drawing.Size)(resources.GetObject("chkCompleted.Size")));
			this.chkCompleted.TabIndex = ((int)(resources.GetObject("chkCompleted.TabIndex")));
			this.chkCompleted.Text = resources.GetString("chkCompleted.Text");
			this.chkCompleted.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkCompleted.TextAlign")));
			this.chkCompleted.Visible = ((bool)(resources.GetObject("chkCompleted.Visible")));
			// 
			// lblTotalAmount
			// 
			this.lblTotalAmount.AccessibleDescription = resources.GetString("lblTotalAmount.AccessibleDescription");
			this.lblTotalAmount.AccessibleName = resources.GetString("lblTotalAmount.AccessibleName");
			this.lblTotalAmount.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblTotalAmount.Anchor")));
			this.lblTotalAmount.AutoSize = ((bool)(resources.GetObject("lblTotalAmount.AutoSize")));
			this.lblTotalAmount.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblTotalAmount.Dock")));
			this.lblTotalAmount.Enabled = ((bool)(resources.GetObject("lblTotalAmount.Enabled")));
			this.lblTotalAmount.Font = ((System.Drawing.Font)(resources.GetObject("lblTotalAmount.Font")));
			this.lblTotalAmount.ForeColor = System.Drawing.Color.Black;
			this.lblTotalAmount.Image = ((System.Drawing.Image)(resources.GetObject("lblTotalAmount.Image")));
			this.lblTotalAmount.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTotalAmount.ImageAlign")));
			this.lblTotalAmount.ImageIndex = ((int)(resources.GetObject("lblTotalAmount.ImageIndex")));
			this.lblTotalAmount.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblTotalAmount.ImeMode")));
			this.lblTotalAmount.Location = ((System.Drawing.Point)(resources.GetObject("lblTotalAmount.Location")));
			this.lblTotalAmount.Name = "lblTotalAmount";
			this.lblTotalAmount.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblTotalAmount.RightToLeft")));
			this.lblTotalAmount.Size = ((System.Drawing.Size)(resources.GetObject("lblTotalAmount.Size")));
			this.lblTotalAmount.TabIndex = ((int)(resources.GetObject("lblTotalAmount.TabIndex")));
			this.lblTotalAmount.Text = resources.GetString("lblTotalAmount.Text");
			this.lblTotalAmount.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTotalAmount.TextAlign")));
			this.lblTotalAmount.Visible = ((bool)(resources.GetObject("lblTotalAmount.Visible")));
			// 
			// lblTotalTime
			// 
			this.lblTotalTime.AccessibleDescription = resources.GetString("lblTotalTime.AccessibleDescription");
			this.lblTotalTime.AccessibleName = resources.GetString("lblTotalTime.AccessibleName");
			this.lblTotalTime.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblTotalTime.Anchor")));
			this.lblTotalTime.AutoSize = ((bool)(resources.GetObject("lblTotalTime.AutoSize")));
			this.lblTotalTime.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblTotalTime.Dock")));
			this.lblTotalTime.Enabled = ((bool)(resources.GetObject("lblTotalTime.Enabled")));
			this.lblTotalTime.Font = ((System.Drawing.Font)(resources.GetObject("lblTotalTime.Font")));
			this.lblTotalTime.ForeColor = System.Drawing.Color.Black;
			this.lblTotalTime.Image = ((System.Drawing.Image)(resources.GetObject("lblTotalTime.Image")));
			this.lblTotalTime.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTotalTime.ImageAlign")));
			this.lblTotalTime.ImageIndex = ((int)(resources.GetObject("lblTotalTime.ImageIndex")));
			this.lblTotalTime.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblTotalTime.ImeMode")));
			this.lblTotalTime.Location = ((System.Drawing.Point)(resources.GetObject("lblTotalTime.Location")));
			this.lblTotalTime.Name = "lblTotalTime";
			this.lblTotalTime.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblTotalTime.RightToLeft")));
			this.lblTotalTime.Size = ((System.Drawing.Size)(resources.GetObject("lblTotalTime.Size")));
			this.lblTotalTime.TabIndex = ((int)(resources.GetObject("lblTotalTime.TabIndex")));
			this.lblTotalTime.Text = resources.GetString("lblTotalTime.Text");
			this.lblTotalTime.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTotalTime.TextAlign")));
			this.lblTotalTime.Visible = ((bool)(resources.GetObject("lblTotalTime.Visible")));
			// 
			// lblTotalApproved
			// 
			this.lblTotalApproved.AccessibleDescription = resources.GetString("lblTotalApproved.AccessibleDescription");
			this.lblTotalApproved.AccessibleName = resources.GetString("lblTotalApproved.AccessibleName");
			this.lblTotalApproved.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblTotalApproved.Anchor")));
			this.lblTotalApproved.AutoSize = ((bool)(resources.GetObject("lblTotalApproved.AutoSize")));
			this.lblTotalApproved.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblTotalApproved.Dock")));
			this.lblTotalApproved.Enabled = ((bool)(resources.GetObject("lblTotalApproved.Enabled")));
			this.lblTotalApproved.Font = ((System.Drawing.Font)(resources.GetObject("lblTotalApproved.Font")));
			this.lblTotalApproved.ForeColor = System.Drawing.Color.Black;
			this.lblTotalApproved.Image = ((System.Drawing.Image)(resources.GetObject("lblTotalApproved.Image")));
			this.lblTotalApproved.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTotalApproved.ImageAlign")));
			this.lblTotalApproved.ImageIndex = ((int)(resources.GetObject("lblTotalApproved.ImageIndex")));
			this.lblTotalApproved.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblTotalApproved.ImeMode")));
			this.lblTotalApproved.Location = ((System.Drawing.Point)(resources.GetObject("lblTotalApproved.Location")));
			this.lblTotalApproved.Name = "lblTotalApproved";
			this.lblTotalApproved.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblTotalApproved.RightToLeft")));
			this.lblTotalApproved.Size = ((System.Drawing.Size)(resources.GetObject("lblTotalApproved.Size")));
			this.lblTotalApproved.TabIndex = ((int)(resources.GetObject("lblTotalApproved.TabIndex")));
			this.lblTotalApproved.Text = resources.GetString("lblTotalApproved.Text");
			this.lblTotalApproved.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTotalApproved.TextAlign")));
			this.lblTotalApproved.Visible = ((bool)(resources.GetObject("lblTotalApproved.Visible")));
			// 
			// txtTotalApproved
			// 
			this.txtTotalApproved.AccessibleDescription = resources.GetString("txtTotalApproved.AccessibleDescription");
			this.txtTotalApproved.AccessibleName = resources.GetString("txtTotalApproved.AccessibleName");
			this.txtTotalApproved.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtTotalApproved.Anchor")));
			this.txtTotalApproved.AutoSize = ((bool)(resources.GetObject("txtTotalApproved.AutoSize")));
			this.txtTotalApproved.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtTotalApproved.BackgroundImage")));
			this.txtTotalApproved.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtTotalApproved.Dock")));
			this.txtTotalApproved.Enabled = ((bool)(resources.GetObject("txtTotalApproved.Enabled")));
			this.txtTotalApproved.Font = ((System.Drawing.Font)(resources.GetObject("txtTotalApproved.Font")));
			this.txtTotalApproved.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtTotalApproved.ImeMode")));
			this.txtTotalApproved.Location = ((System.Drawing.Point)(resources.GetObject("txtTotalApproved.Location")));
			this.txtTotalApproved.MaxLength = ((int)(resources.GetObject("txtTotalApproved.MaxLength")));
			this.txtTotalApproved.Multiline = ((bool)(resources.GetObject("txtTotalApproved.Multiline")));
			this.txtTotalApproved.Name = "txtTotalApproved";
			this.txtTotalApproved.PasswordChar = ((char)(resources.GetObject("txtTotalApproved.PasswordChar")));
			this.txtTotalApproved.ReadOnly = true;
			this.txtTotalApproved.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtTotalApproved.RightToLeft")));
			this.txtTotalApproved.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtTotalApproved.ScrollBars")));
			this.txtTotalApproved.Size = ((System.Drawing.Size)(resources.GetObject("txtTotalApproved.Size")));
			this.txtTotalApproved.TabIndex = ((int)(resources.GetObject("txtTotalApproved.TabIndex")));
			this.txtTotalApproved.Text = resources.GetString("txtTotalApproved.Text");
			this.txtTotalApproved.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtTotalApproved.TextAlign")));
			this.txtTotalApproved.Visible = ((bool)(resources.GetObject("txtTotalApproved.Visible")));
			this.txtTotalApproved.WordWrap = ((bool)(resources.GetObject("txtTotalApproved.WordWrap")));
			// 
			// txtTotalAmount
			// 
			this.txtTotalAmount.AccessibleDescription = resources.GetString("txtTotalAmount.AccessibleDescription");
			this.txtTotalAmount.AccessibleName = resources.GetString("txtTotalAmount.AccessibleName");
			this.txtTotalAmount.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtTotalAmount.Anchor")));
			this.txtTotalAmount.AutoSize = ((bool)(resources.GetObject("txtTotalAmount.AutoSize")));
			this.txtTotalAmount.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtTotalAmount.BackgroundImage")));
			this.txtTotalAmount.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtTotalAmount.Dock")));
			this.txtTotalAmount.Enabled = ((bool)(resources.GetObject("txtTotalAmount.Enabled")));
			this.txtTotalAmount.Font = ((System.Drawing.Font)(resources.GetObject("txtTotalAmount.Font")));
			this.txtTotalAmount.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtTotalAmount.ImeMode")));
			this.txtTotalAmount.Location = ((System.Drawing.Point)(resources.GetObject("txtTotalAmount.Location")));
			this.txtTotalAmount.MaxLength = ((int)(resources.GetObject("txtTotalAmount.MaxLength")));
			this.txtTotalAmount.Multiline = ((bool)(resources.GetObject("txtTotalAmount.Multiline")));
			this.txtTotalAmount.Name = "txtTotalAmount";
			this.txtTotalAmount.PasswordChar = ((char)(resources.GetObject("txtTotalAmount.PasswordChar")));
			this.txtTotalAmount.ReadOnly = true;
			this.txtTotalAmount.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtTotalAmount.RightToLeft")));
			this.txtTotalAmount.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtTotalAmount.ScrollBars")));
			this.txtTotalAmount.Size = ((System.Drawing.Size)(resources.GetObject("txtTotalAmount.Size")));
			this.txtTotalAmount.TabIndex = ((int)(resources.GetObject("txtTotalAmount.TabIndex")));
			this.txtTotalAmount.Text = resources.GetString("txtTotalAmount.Text");
			this.txtTotalAmount.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtTotalAmount.TextAlign")));
			this.txtTotalAmount.Visible = ((bool)(resources.GetObject("txtTotalAmount.Visible")));
			this.txtTotalAmount.WordWrap = ((bool)(resources.GetObject("txtTotalAmount.WordWrap")));
			// 
			// txtTotalTime
			// 
			this.txtTotalTime.AccessibleDescription = resources.GetString("txtTotalTime.AccessibleDescription");
			this.txtTotalTime.AccessibleName = resources.GetString("txtTotalTime.AccessibleName");
			this.txtTotalTime.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtTotalTime.Anchor")));
			this.txtTotalTime.AutoSize = ((bool)(resources.GetObject("txtTotalTime.AutoSize")));
			this.txtTotalTime.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtTotalTime.BackgroundImage")));
			this.txtTotalTime.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtTotalTime.Dock")));
			this.txtTotalTime.Enabled = ((bool)(resources.GetObject("txtTotalTime.Enabled")));
			this.txtTotalTime.Font = ((System.Drawing.Font)(resources.GetObject("txtTotalTime.Font")));
			this.txtTotalTime.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtTotalTime.ImeMode")));
			this.txtTotalTime.Location = ((System.Drawing.Point)(resources.GetObject("txtTotalTime.Location")));
			this.txtTotalTime.MaxLength = ((int)(resources.GetObject("txtTotalTime.MaxLength")));
			this.txtTotalTime.Multiline = ((bool)(resources.GetObject("txtTotalTime.Multiline")));
			this.txtTotalTime.Name = "txtTotalTime";
			this.txtTotalTime.PasswordChar = ((char)(resources.GetObject("txtTotalTime.PasswordChar")));
			this.txtTotalTime.ReadOnly = true;
			this.txtTotalTime.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtTotalTime.RightToLeft")));
			this.txtTotalTime.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtTotalTime.ScrollBars")));
			this.txtTotalTime.Size = ((System.Drawing.Size)(resources.GetObject("txtTotalTime.Size")));
			this.txtTotalTime.TabIndex = ((int)(resources.GetObject("txtTotalTime.TabIndex")));
			this.txtTotalTime.Text = resources.GetString("txtTotalTime.Text");
			this.txtTotalTime.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtTotalTime.TextAlign")));
			this.txtTotalTime.Visible = ((bool)(resources.GetObject("txtTotalTime.Visible")));
			this.txtTotalTime.WordWrap = ((bool)(resources.GetObject("txtTotalTime.WordWrap")));
			// 
			// txtTotalRequestApproved
			// 
			this.txtTotalRequestApproved.AccessibleDescription = resources.GetString("txtTotalRequestApproved.AccessibleDescription");
			this.txtTotalRequestApproved.AccessibleName = resources.GetString("txtTotalRequestApproved.AccessibleName");
			this.txtTotalRequestApproved.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtTotalRequestApproved.Anchor")));
			this.txtTotalRequestApproved.AutoSize = ((bool)(resources.GetObject("txtTotalRequestApproved.AutoSize")));
			this.txtTotalRequestApproved.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtTotalRequestApproved.BackgroundImage")));
			this.txtTotalRequestApproved.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtTotalRequestApproved.Dock")));
			this.txtTotalRequestApproved.Enabled = ((bool)(resources.GetObject("txtTotalRequestApproved.Enabled")));
			this.txtTotalRequestApproved.Font = ((System.Drawing.Font)(resources.GetObject("txtTotalRequestApproved.Font")));
			this.txtTotalRequestApproved.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtTotalRequestApproved.ImeMode")));
			this.txtTotalRequestApproved.Location = ((System.Drawing.Point)(resources.GetObject("txtTotalRequestApproved.Location")));
			this.txtTotalRequestApproved.MaxLength = ((int)(resources.GetObject("txtTotalRequestApproved.MaxLength")));
			this.txtTotalRequestApproved.Multiline = ((bool)(resources.GetObject("txtTotalRequestApproved.Multiline")));
			this.txtTotalRequestApproved.Name = "txtTotalRequestApproved";
			this.txtTotalRequestApproved.PasswordChar = ((char)(resources.GetObject("txtTotalRequestApproved.PasswordChar")));
			this.txtTotalRequestApproved.ReadOnly = true;
			this.txtTotalRequestApproved.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtTotalRequestApproved.RightToLeft")));
			this.txtTotalRequestApproved.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtTotalRequestApproved.ScrollBars")));
			this.txtTotalRequestApproved.Size = ((System.Drawing.Size)(resources.GetObject("txtTotalRequestApproved.Size")));
			this.txtTotalRequestApproved.TabIndex = ((int)(resources.GetObject("txtTotalRequestApproved.TabIndex")));
			this.txtTotalRequestApproved.Text = resources.GetString("txtTotalRequestApproved.Text");
			this.txtTotalRequestApproved.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtTotalRequestApproved.TextAlign")));
			this.txtTotalRequestApproved.Visible = ((bool)(resources.GetObject("txtTotalRequestApproved.Visible")));
			this.txtTotalRequestApproved.WordWrap = ((bool)(resources.GetObject("txtTotalRequestApproved.WordWrap")));
			// 
			// txtTotalRequest
			// 
			this.txtTotalRequest.AccessibleDescription = resources.GetString("txtTotalRequest.AccessibleDescription");
			this.txtTotalRequest.AccessibleName = resources.GetString("txtTotalRequest.AccessibleName");
			this.txtTotalRequest.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtTotalRequest.Anchor")));
			this.txtTotalRequest.AutoSize = ((bool)(resources.GetObject("txtTotalRequest.AutoSize")));
			this.txtTotalRequest.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtTotalRequest.BackgroundImage")));
			this.txtTotalRequest.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtTotalRequest.Dock")));
			this.txtTotalRequest.Enabled = ((bool)(resources.GetObject("txtTotalRequest.Enabled")));
			this.txtTotalRequest.Font = ((System.Drawing.Font)(resources.GetObject("txtTotalRequest.Font")));
			this.txtTotalRequest.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtTotalRequest.ImeMode")));
			this.txtTotalRequest.Location = ((System.Drawing.Point)(resources.GetObject("txtTotalRequest.Location")));
			this.txtTotalRequest.MaxLength = ((int)(resources.GetObject("txtTotalRequest.MaxLength")));
			this.txtTotalRequest.Multiline = ((bool)(resources.GetObject("txtTotalRequest.Multiline")));
			this.txtTotalRequest.Name = "txtTotalRequest";
			this.txtTotalRequest.PasswordChar = ((char)(resources.GetObject("txtTotalRequest.PasswordChar")));
			this.txtTotalRequest.ReadOnly = true;
			this.txtTotalRequest.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtTotalRequest.RightToLeft")));
			this.txtTotalRequest.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtTotalRequest.ScrollBars")));
			this.txtTotalRequest.Size = ((System.Drawing.Size)(resources.GetObject("txtTotalRequest.Size")));
			this.txtTotalRequest.TabIndex = ((int)(resources.GetObject("txtTotalRequest.TabIndex")));
			this.txtTotalRequest.Text = resources.GetString("txtTotalRequest.Text");
			this.txtTotalRequest.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtTotalRequest.TextAlign")));
			this.txtTotalRequest.Visible = ((bool)(resources.GetObject("txtTotalRequest.Visible")));
			this.txtTotalRequest.WordWrap = ((bool)(resources.GetObject("txtTotalRequest.WordWrap")));
			// 
			// lblTotalRequest
			// 
			this.lblTotalRequest.AccessibleDescription = resources.GetString("lblTotalRequest.AccessibleDescription");
			this.lblTotalRequest.AccessibleName = resources.GetString("lblTotalRequest.AccessibleName");
			this.lblTotalRequest.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblTotalRequest.Anchor")));
			this.lblTotalRequest.AutoSize = ((bool)(resources.GetObject("lblTotalRequest.AutoSize")));
			this.lblTotalRequest.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblTotalRequest.Dock")));
			this.lblTotalRequest.Enabled = ((bool)(resources.GetObject("lblTotalRequest.Enabled")));
			this.lblTotalRequest.Font = ((System.Drawing.Font)(resources.GetObject("lblTotalRequest.Font")));
			this.lblTotalRequest.ForeColor = System.Drawing.Color.Black;
			this.lblTotalRequest.Image = ((System.Drawing.Image)(resources.GetObject("lblTotalRequest.Image")));
			this.lblTotalRequest.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTotalRequest.ImageAlign")));
			this.lblTotalRequest.ImageIndex = ((int)(resources.GetObject("lblTotalRequest.ImageIndex")));
			this.lblTotalRequest.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblTotalRequest.ImeMode")));
			this.lblTotalRequest.Location = ((System.Drawing.Point)(resources.GetObject("lblTotalRequest.Location")));
			this.lblTotalRequest.Name = "lblTotalRequest";
			this.lblTotalRequest.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblTotalRequest.RightToLeft")));
			this.lblTotalRequest.Size = ((System.Drawing.Size)(resources.GetObject("lblTotalRequest.Size")));
			this.lblTotalRequest.TabIndex = ((int)(resources.GetObject("lblTotalRequest.TabIndex")));
			this.lblTotalRequest.Text = resources.GetString("lblTotalRequest.Text");
			this.lblTotalRequest.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTotalRequest.TextAlign")));
			this.lblTotalRequest.Visible = ((bool)(resources.GetObject("lblTotalRequest.Visible")));
			// 
			// lblTotalRequestApproved
			// 
			this.lblTotalRequestApproved.AccessibleDescription = resources.GetString("lblTotalRequestApproved.AccessibleDescription");
			this.lblTotalRequestApproved.AccessibleName = resources.GetString("lblTotalRequestApproved.AccessibleName");
			this.lblTotalRequestApproved.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblTotalRequestApproved.Anchor")));
			this.lblTotalRequestApproved.AutoSize = ((bool)(resources.GetObject("lblTotalRequestApproved.AutoSize")));
			this.lblTotalRequestApproved.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblTotalRequestApproved.Dock")));
			this.lblTotalRequestApproved.Enabled = ((bool)(resources.GetObject("lblTotalRequestApproved.Enabled")));
			this.lblTotalRequestApproved.Font = ((System.Drawing.Font)(resources.GetObject("lblTotalRequestApproved.Font")));
			this.lblTotalRequestApproved.ForeColor = System.Drawing.Color.Black;
			this.lblTotalRequestApproved.Image = ((System.Drawing.Image)(resources.GetObject("lblTotalRequestApproved.Image")));
			this.lblTotalRequestApproved.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTotalRequestApproved.ImageAlign")));
			this.lblTotalRequestApproved.ImageIndex = ((int)(resources.GetObject("lblTotalRequestApproved.ImageIndex")));
			this.lblTotalRequestApproved.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblTotalRequestApproved.ImeMode")));
			this.lblTotalRequestApproved.Location = ((System.Drawing.Point)(resources.GetObject("lblTotalRequestApproved.Location")));
			this.lblTotalRequestApproved.Name = "lblTotalRequestApproved";
			this.lblTotalRequestApproved.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblTotalRequestApproved.RightToLeft")));
			this.lblTotalRequestApproved.Size = ((System.Drawing.Size)(resources.GetObject("lblTotalRequestApproved.Size")));
			this.lblTotalRequestApproved.TabIndex = ((int)(resources.GetObject("lblTotalRequestApproved.TabIndex")));
			this.lblTotalRequestApproved.Text = resources.GetString("lblTotalRequestApproved.Text");
			this.lblTotalRequestApproved.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTotalRequestApproved.TextAlign")));
			this.lblTotalRequestApproved.Visible = ((bool)(resources.GetObject("lblTotalRequestApproved.Visible")));
			// 
			// txtTotalAdvance
			// 
			this.txtTotalAdvance.AccessibleDescription = resources.GetString("txtTotalAdvance.AccessibleDescription");
			this.txtTotalAdvance.AccessibleName = resources.GetString("txtTotalAdvance.AccessibleName");
			this.txtTotalAdvance.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtTotalAdvance.Anchor")));
			this.txtTotalAdvance.AutoSize = ((bool)(resources.GetObject("txtTotalAdvance.AutoSize")));
			this.txtTotalAdvance.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtTotalAdvance.BackgroundImage")));
			this.txtTotalAdvance.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtTotalAdvance.Dock")));
			this.txtTotalAdvance.Enabled = ((bool)(resources.GetObject("txtTotalAdvance.Enabled")));
			this.txtTotalAdvance.Font = ((System.Drawing.Font)(resources.GetObject("txtTotalAdvance.Font")));
			this.txtTotalAdvance.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtTotalAdvance.ImeMode")));
			this.txtTotalAdvance.Location = ((System.Drawing.Point)(resources.GetObject("txtTotalAdvance.Location")));
			this.txtTotalAdvance.MaxLength = ((int)(resources.GetObject("txtTotalAdvance.MaxLength")));
			this.txtTotalAdvance.Multiline = ((bool)(resources.GetObject("txtTotalAdvance.Multiline")));
			this.txtTotalAdvance.Name = "txtTotalAdvance";
			this.txtTotalAdvance.PasswordChar = ((char)(resources.GetObject("txtTotalAdvance.PasswordChar")));
			this.txtTotalAdvance.ReadOnly = true;
			this.txtTotalAdvance.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtTotalAdvance.RightToLeft")));
			this.txtTotalAdvance.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtTotalAdvance.ScrollBars")));
			this.txtTotalAdvance.Size = ((System.Drawing.Size)(resources.GetObject("txtTotalAdvance.Size")));
			this.txtTotalAdvance.TabIndex = ((int)(resources.GetObject("txtTotalAdvance.TabIndex")));
			this.txtTotalAdvance.Text = resources.GetString("txtTotalAdvance.Text");
			this.txtTotalAdvance.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtTotalAdvance.TextAlign")));
			this.txtTotalAdvance.Visible = ((bool)(resources.GetObject("txtTotalAdvance.Visible")));
			this.txtTotalAdvance.WordWrap = ((bool)(resources.GetObject("txtTotalAdvance.WordWrap")));
			// 
			// lblTotalAdvance
			// 
			this.lblTotalAdvance.AccessibleDescription = resources.GetString("lblTotalAdvance.AccessibleDescription");
			this.lblTotalAdvance.AccessibleName = resources.GetString("lblTotalAdvance.AccessibleName");
			this.lblTotalAdvance.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblTotalAdvance.Anchor")));
			this.lblTotalAdvance.AutoSize = ((bool)(resources.GetObject("lblTotalAdvance.AutoSize")));
			this.lblTotalAdvance.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblTotalAdvance.Dock")));
			this.lblTotalAdvance.Enabled = ((bool)(resources.GetObject("lblTotalAdvance.Enabled")));
			this.lblTotalAdvance.Font = ((System.Drawing.Font)(resources.GetObject("lblTotalAdvance.Font")));
			this.lblTotalAdvance.ForeColor = System.Drawing.Color.Black;
			this.lblTotalAdvance.Image = ((System.Drawing.Image)(resources.GetObject("lblTotalAdvance.Image")));
			this.lblTotalAdvance.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTotalAdvance.ImageAlign")));
			this.lblTotalAdvance.ImageIndex = ((int)(resources.GetObject("lblTotalAdvance.ImageIndex")));
			this.lblTotalAdvance.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblTotalAdvance.ImeMode")));
			this.lblTotalAdvance.Location = ((System.Drawing.Point)(resources.GetObject("lblTotalAdvance.Location")));
			this.lblTotalAdvance.Name = "lblTotalAdvance";
			this.lblTotalAdvance.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblTotalAdvance.RightToLeft")));
			this.lblTotalAdvance.Size = ((System.Drawing.Size)(resources.GetObject("lblTotalAdvance.Size")));
			this.lblTotalAdvance.TabIndex = ((int)(resources.GetObject("lblTotalAdvance.TabIndex")));
			this.lblTotalAdvance.Text = resources.GetString("lblTotalAdvance.Text");
			this.lblTotalAdvance.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTotalAdvance.TextAlign")));
			this.lblTotalAdvance.Visible = ((bool)(resources.GetObject("lblTotalAdvance.Visible")));
			// 
			// txtTotalAdvanceApproved
			// 
			this.txtTotalAdvanceApproved.AccessibleDescription = resources.GetString("txtTotalAdvanceApproved.AccessibleDescription");
			this.txtTotalAdvanceApproved.AccessibleName = resources.GetString("txtTotalAdvanceApproved.AccessibleName");
			this.txtTotalAdvanceApproved.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtTotalAdvanceApproved.Anchor")));
			this.txtTotalAdvanceApproved.AutoSize = ((bool)(resources.GetObject("txtTotalAdvanceApproved.AutoSize")));
			this.txtTotalAdvanceApproved.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtTotalAdvanceApproved.BackgroundImage")));
			this.txtTotalAdvanceApproved.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtTotalAdvanceApproved.Dock")));
			this.txtTotalAdvanceApproved.Enabled = ((bool)(resources.GetObject("txtTotalAdvanceApproved.Enabled")));
			this.txtTotalAdvanceApproved.Font = ((System.Drawing.Font)(resources.GetObject("txtTotalAdvanceApproved.Font")));
			this.txtTotalAdvanceApproved.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtTotalAdvanceApproved.ImeMode")));
			this.txtTotalAdvanceApproved.Location = ((System.Drawing.Point)(resources.GetObject("txtTotalAdvanceApproved.Location")));
			this.txtTotalAdvanceApproved.MaxLength = ((int)(resources.GetObject("txtTotalAdvanceApproved.MaxLength")));
			this.txtTotalAdvanceApproved.Multiline = ((bool)(resources.GetObject("txtTotalAdvanceApproved.Multiline")));
			this.txtTotalAdvanceApproved.Name = "txtTotalAdvanceApproved";
			this.txtTotalAdvanceApproved.PasswordChar = ((char)(resources.GetObject("txtTotalAdvanceApproved.PasswordChar")));
			this.txtTotalAdvanceApproved.ReadOnly = true;
			this.txtTotalAdvanceApproved.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtTotalAdvanceApproved.RightToLeft")));
			this.txtTotalAdvanceApproved.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtTotalAdvanceApproved.ScrollBars")));
			this.txtTotalAdvanceApproved.Size = ((System.Drawing.Size)(resources.GetObject("txtTotalAdvanceApproved.Size")));
			this.txtTotalAdvanceApproved.TabIndex = ((int)(resources.GetObject("txtTotalAdvanceApproved.TabIndex")));
			this.txtTotalAdvanceApproved.Text = resources.GetString("txtTotalAdvanceApproved.Text");
			this.txtTotalAdvanceApproved.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtTotalAdvanceApproved.TextAlign")));
			this.txtTotalAdvanceApproved.Visible = ((bool)(resources.GetObject("txtTotalAdvanceApproved.Visible")));
			this.txtTotalAdvanceApproved.WordWrap = ((bool)(resources.GetObject("txtTotalAdvanceApproved.WordWrap")));
			// 
			// lblTotalAdvanceApproved
			// 
			this.lblTotalAdvanceApproved.AccessibleDescription = resources.GetString("lblTotalAdvanceApproved.AccessibleDescription");
			this.lblTotalAdvanceApproved.AccessibleName = resources.GetString("lblTotalAdvanceApproved.AccessibleName");
			this.lblTotalAdvanceApproved.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblTotalAdvanceApproved.Anchor")));
			this.lblTotalAdvanceApproved.AutoSize = ((bool)(resources.GetObject("lblTotalAdvanceApproved.AutoSize")));
			this.lblTotalAdvanceApproved.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblTotalAdvanceApproved.Dock")));
			this.lblTotalAdvanceApproved.Enabled = ((bool)(resources.GetObject("lblTotalAdvanceApproved.Enabled")));
			this.lblTotalAdvanceApproved.Font = ((System.Drawing.Font)(resources.GetObject("lblTotalAdvanceApproved.Font")));
			this.lblTotalAdvanceApproved.ForeColor = System.Drawing.Color.Black;
			this.lblTotalAdvanceApproved.Image = ((System.Drawing.Image)(resources.GetObject("lblTotalAdvanceApproved.Image")));
			this.lblTotalAdvanceApproved.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTotalAdvanceApproved.ImageAlign")));
			this.lblTotalAdvanceApproved.ImageIndex = ((int)(resources.GetObject("lblTotalAdvanceApproved.ImageIndex")));
			this.lblTotalAdvanceApproved.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblTotalAdvanceApproved.ImeMode")));
			this.lblTotalAdvanceApproved.Location = ((System.Drawing.Point)(resources.GetObject("lblTotalAdvanceApproved.Location")));
			this.lblTotalAdvanceApproved.Name = "lblTotalAdvanceApproved";
			this.lblTotalAdvanceApproved.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblTotalAdvanceApproved.RightToLeft")));
			this.lblTotalAdvanceApproved.Size = ((System.Drawing.Size)(resources.GetObject("lblTotalAdvanceApproved.Size")));
			this.lblTotalAdvanceApproved.TabIndex = ((int)(resources.GetObject("lblTotalAdvanceApproved.TabIndex")));
			this.lblTotalAdvanceApproved.Text = resources.GetString("lblTotalAdvanceApproved.Text");
			this.lblTotalAdvanceApproved.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTotalAdvanceApproved.TextAlign")));
			this.lblTotalAdvanceApproved.Visible = ((bool)(resources.GetObject("lblTotalAdvanceApproved.Visible")));
			// 
			// btnDelete
			// 
			this.btnDelete.AccessibleDescription = resources.GetString("btnDelete.AccessibleDescription");
			this.btnDelete.AccessibleName = resources.GetString("btnDelete.AccessibleName");
			this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnDelete.Anchor")));
			this.btnDelete.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnDelete.BackgroundImage")));
			this.btnDelete.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnDelete.Dock")));
			this.btnDelete.Enabled = ((bool)(resources.GetObject("btnDelete.Enabled")));
			this.btnDelete.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnDelete.FlatStyle")));
			this.btnDelete.Font = ((System.Drawing.Font)(resources.GetObject("btnDelete.Font")));
			this.btnDelete.Image = ((System.Drawing.Image)(resources.GetObject("btnDelete.Image")));
			this.btnDelete.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.ImageAlign")));
			this.btnDelete.ImageIndex = ((int)(resources.GetObject("btnDelete.ImageIndex")));
			this.btnDelete.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnDelete.ImeMode")));
			this.btnDelete.Location = ((System.Drawing.Point)(resources.GetObject("btnDelete.Location")));
			this.btnDelete.Name = "btnDelete";
			this.btnDelete.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnDelete.RightToLeft")));
			this.btnDelete.Size = ((System.Drawing.Size)(resources.GetObject("btnDelete.Size")));
			this.btnDelete.TabIndex = ((int)(resources.GetObject("btnDelete.TabIndex")));
			this.btnDelete.Text = resources.GetString("btnDelete.Text");
			this.btnDelete.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.TextAlign")));
			this.btnDelete.Visible = ((bool)(resources.GetObject("btnDelete.Visible")));
			this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
			// 
			// BudgetEstimates
			// 
			this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
			this.AccessibleName = resources.GetString("$this.AccessibleName");
			this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.CancelButton = this.btnClose;
			this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
			this.Controls.Add(this.txtTotalAdvanceApproved);
			this.Controls.Add(this.txtTotalAdvance);
			this.Controls.Add(this.txtTotalRequestApproved);
			this.Controls.Add(this.txtTotalRequest);
			this.Controls.Add(this.txtTotalTime);
			this.Controls.Add(this.txtTotalApproved);
			this.Controls.Add(this.txtTotalAmount);
			this.Controls.Add(this.txtFCode);
			this.Controls.Add(this.txtTransNo);
			this.Controls.Add(this.dgrdData);
			this.Controls.Add(this.lblTotalAdvanceApproved);
			this.Controls.Add(this.lblTotalAdvance);
			this.Controls.Add(this.lblTotalRequest);
			this.Controls.Add(this.lblTotalRequestApproved);
			this.Controls.Add(this.lblTotalAmount);
			this.Controls.Add(this.lblTotalTime);
			this.Controls.Add(this.lblTotalApproved);
			this.Controls.Add(this.chkCompleted);
			this.Controls.Add(this.btnEdit);
			this.Controls.Add(this.btnClose);
			this.Controls.Add(this.btnHelp);
			this.Controls.Add(this.btnSave);
			this.Controls.Add(this.btnAdd);
			this.Controls.Add(this.btnSearch);
			this.Controls.Add(this.dtmTransDate);
			this.Controls.Add(this.btnTransNo);
			this.Controls.Add(this.btnGoodsCode);
			this.Controls.Add(this.lblTransNo);
			this.Controls.Add(this.lblPostDate);
			this.Controls.Add(this.lblInvoiceNo);
			this.Controls.Add(this.btnDelete);
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
			this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
			this.Name = "BudgetEstimates";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
			this.Text = resources.GetString("$this.Text");
			this.Closing += new System.ComponentModel.CancelEventHandler(this.BudgetEstimates_Closing);
			this.Load += new System.EventHandler(this.BudgetEstimates_Load);
			((System.ComponentModel.ISupportInitialize)(this.dgrdData)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmTransDate)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		#region private methods

		/// <summary>
		/// On/Off button based on form mode
		/// </summary>
		private void SwitchFormMode()
		{
			switch (mFormMode)
			{
				case EnumAction.Add:
					dtmTransDate.Enabled = true;
					btnTransNo.Enabled = false;
					txtFCode.Enabled = true;
					btnGoodsCode.Enabled = true;
					btnSearch.Enabled = true;
					btnSave.Enabled = true;
					btnAdd.Enabled = false;
					btnEdit.Enabled = false;
					btnDelete.Enabled = false;
					chkCompleted.Enabled = true;
					dgrdData.AllowDelete = true;
					break;
				case EnumAction.Edit:
					dtmTransDate.Enabled = true;
					btnTransNo.Enabled = false;
					txtFCode.Enabled = true;
					btnGoodsCode.Enabled = true;
					btnSave.Enabled = true;
					btnAdd.Enabled = false;
					btnEdit.Enabled = false;
					btnDelete.Enabled = false;
					chkCompleted.Enabled = true;
					btnSearch.Enabled = !blnIsInEstimate;
					dgrdData.AllowDelete = true;
					break;
				default:
					dtmTransDate.Enabled = false;
					btnTransNo.Enabled = true;
					txtFCode.Enabled = false;
					btnGoodsCode.Enabled = false;
					chkCompleted.Enabled = false;
					foreach (C1DisplayColumn c1Col in dgrdData.Splits[0].DisplayColumns)
						c1Col.Locked = true;
					
					btnSave.Enabled = false;
					btnAdd.Enabled = true;
					btnSearch.Enabled = false;
					btnEdit.Enabled = txtTransNo.Tag != null;
					btnDelete.Enabled = !blnIsInEstimate;
					dgrdData.AllowDelete = false;
					break;
			}
		}

		/// <summary>
		/// Loading data to grid and restore grid layout
		/// </summary>
		private void LoadDataToGrid()
		{
			dgrdData.DataSource = dstData.Tables[0];
			FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);

			foreach (C1DisplayColumn c1Col in dgrdData.Splits[0].DisplayColumns)
				c1Col.Locked = true;
			
			dgrdData.Splits[0].DisplayColumns[PAY_EstimateDetailTable.ADVANCELIMIT_FLD].Locked = false;
			dgrdData.Splits[0].DisplayColumns[PAY_EstimateDetailTable.REQUESTLIMIT_FLD].Locked = false;	

			dgrdData.Columns[PAY_EstimateDetailTable.TOTALTIME_FLD].NumberFormat = Constants.DECIMAL_LONG_FORMAT;
			dgrdData.Columns[PAY_EstimateDetailTable.AMOUNT_FLD].NumberFormat = Constants.DECIMAL_LONG_FORMAT;
			dgrdData.Columns[PAY_EstimateDetailTable.APPROVALAMOUNT_FLD].NumberFormat = Constants.DECIMAL_LONG_FORMAT;
			dgrdData.Columns[PAY_EstimateDetailTable.AVAILABLEAMOUNT_FLD].NumberFormat = Constants.DECIMAL_LONG_FORMAT;
			dgrdData.Columns[PAY_EstimateDetailTable.REQUESTAMOUNT_FLD].NumberFormat = Constants.DECIMAL_LONG_FORMAT;
			dgrdData.Columns[PAY_EstimateDetailTable.REQUESTLIMIT_FLD].NumberFormat = Constants.DECIMAL_LONG_FORMAT;
			dgrdData.Columns[PAY_EstimateDetailTable.ADVANCELIMIT_FLD].NumberFormat = Constants.DECIMAL_LONG_FORMAT;
			dgrdData.Columns[PAY_EstimateDetailTable.APPROVEDADVANCEAMOUNT_FLD].NumberFormat = Constants.DECIMAL_LONG_FORMAT;
			dgrdData.Columns[PAY_EstimateDetailTable.APPROVEDREQUESTAMOUNT_FLD].NumberFormat = Constants.DECIMAL_LONG_FORMAT;
			dgrdData.Columns[PAY_EstimateDetailTable.ADVANCEAMOUNT_FLD].NumberFormat = Constants.DECIMAL_LONG_FORMAT;
		}

		/// <summary>
		/// Clear any data in form
		/// </summary>
		private void ClearData()
		{
			txtTransNo.Text = string.Empty;
			txtTransNo.Tag = null;

			txtFCode.Text = string.Empty;
			txtFCode.Tag = null;

			txtTotalAdvance.Text = string.Empty;
			txtTotalAdvanceApproved.Text = string.Empty;
			txtTotalAmount.Text = string.Empty;
			txtTotalApproved.Text = string.Empty;
			txtTotalRequest.Text = string.Empty;
			txtTotalRequestApproved.Text = string.Empty;
			txtTotalTime.Text = string.Empty;

			chkCompleted.Checked = false;

			if (dstData != null && dstData.Tables.Count > 0)
			{
				if (mFormMode == EnumAction.Edit)
				{
					for (int i = dstData.Tables[0].Rows.Count - 1; i >= 0; i--)
						dstData.Tables[0].Rows[i].Delete();
				}
				else
					dstData.Tables[0].Clear();
			}
		}
		private void ChangeFGoodsCode()
		{
			txtTotalAdvance.Text = string.Empty;
			txtTotalAdvanceApproved.Text = string.Empty;
			txtTotalAmount.Text = string.Empty;
			txtTotalApproved.Text = string.Empty;
			txtTotalRequest.Text = string.Empty;
			txtTotalRequestApproved.Text = string.Empty;
			txtTotalTime.Text = string.Empty;

			chkCompleted.Checked = false;

			if (dstData != null && dstData.Tables.Count > 0)
			{
				if (mFormMode == EnumAction.Edit)
				{
					for (int i = dstData.Tables[0].Rows.Count - 1; i >= 0; i--)
						dstData.Tables[0].Rows[i].Delete();
				}
				else
					dstData.Tables[0].Clear();
			}
		}

		/// <summary>
		/// Validate data before saving to database
		/// </summary>
		/// <returns></returns>
		private bool ValidateData()
		{
			if (FormControlComponents.CheckMandatory(txtTransNo))
			{
				PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Warning);
				txtTransNo.Focus();
				return false;
			}
			if (FormControlComponents.CheckMandatory(txtFCode))
			{
				PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Warning);
				txtFCode.Focus();
				return false;
			}
			if (dgrdData.RowCount < 1)
			{
				// You have to input at least a record in grid sale order detail
				PCSMessageBox.Show(ErrorCode.MESSAGE_INPUT_AT_LEAST_RECORD_IN_GRID,MessageBoxIcon.Exclamation);
				dgrdData.Focus();
				return false;
			}
			// validate data in grid
			for (int i = 0; i < dgrdData.RowCount; i++)
			{
				dgrdData.Row = i;

				#region Request limit

				try
				{
					decimal decRequestLimit = Convert.ToDecimal(dgrdData[i, PAY_EstimateDetailTable.REQUESTLIMIT_FLD]);
					if (decRequestLimit < 0 || decRequestLimit > 100)
					{
						string[] strMsg = new string[]{"0", "100"};
						PCSMessageBox.Show(ErrorCode.MESSAGE_NUMBER_MUST_IN_SCOPE, MessageBoxIcon.Warning, strMsg);
						dgrdData.Col = dgrdData.Columns.IndexOf(dgrdData.Columns[PAY_EstimateDetailTable.REQUESTLIMIT_FLD]);
						dgrdData.Select();
						return false;
					}
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxButtons.OK, MessageBoxIcon.Error);
					dgrdData.Col = dgrdData.Columns.IndexOf(dgrdData.Columns[PAY_EstimateDetailTable.REQUESTLIMIT_FLD]);
					dgrdData.Select();
					return false;
				}

				#endregion

				#region Advance limit

				try
				{
					decimal decAdvanceLimit = Convert.ToDecimal(dgrdData[i, PAY_EstimateDetailTable.ADVANCELIMIT_FLD]);
					if (decAdvanceLimit < 0 || decAdvanceLimit > 100)
					{
						string[] strMsg = new string[]{"0", "100"};
						PCSMessageBox.Show(ErrorCode.MESSAGE_NUMBER_MUST_IN_SCOPE, MessageBoxIcon.Warning, strMsg);
						dgrdData.Col = dgrdData.Columns.IndexOf(dgrdData.Columns[PAY_EstimateDetailTable.ADVANCELIMIT_FLD]);
						dgrdData.Select();
						return false;
					}
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxButtons.OK, MessageBoxIcon.Error);
					dgrdData.Col = dgrdData.Columns.IndexOf(dgrdData.Columns[PAY_EstimateDetailTable.ADVANCELIMIT_FLD]);
					dgrdData.Select();
					return false;
				}

				#endregion
			}
			return true;
		}
		/// <summary>
		/// Saving data on form to database
		/// </summary>
		/// <returns></returns>
		private bool SaveData()
		{
			PAY_EstimateMasterVO voMaster = new PAY_EstimateMasterVO();
			voMaster.SaleOrderDetailID = Convert.ToInt32(txtFCode.Tag);
			voMaster.TransDate = Convert.ToDateTime(dtmTransDate.Value);
			voMaster.TransNo = txtTransNo.Text.Trim();
				
			BudgetEstimatesBO boEstimate = new BudgetEstimatesBO();
			switch (mFormMode)
			{
				case EnumAction.Add:
					voMaster.EstimateMasterID = boEstimate.AddAndReturnID(voMaster, dstData);
					break;
				case EnumAction.Edit:
					voMaster.EstimateMasterID = Convert.ToInt32(txtTransNo.Tag);
					boEstimate.Update(voMaster, dstData);
					break;
			}
			txtTransNo.Tag = voMaster.EstimateMasterID;
			return true;
		}
		/// <summary>
		/// Loading data from master ID
		/// </summary>
		/// <param name="pintMasterID"></param>
		private void LoadDataFromMaster(int pintMasterID)
		{
			// loading master
			PAY_EstimateMasterVO voMaster = (PAY_EstimateMasterVO)boEstimate.GetObjectVO(pintMasterID, string.Empty);
			dtmTransDate.Value = voMaster.TransDate;
			txtTransNo.Text = voMaster.TransNo;
			txtTransNo.Tag = voMaster.EstimateMasterID;
			DataRowView drvSale = FormControlComponents.OpenSearchForm(SO_SaleOrderDetailTable.TABLE_NAME, SO_SaleOrderDetailTable.SALEORDERDETAILID_FLD, voMaster.SaleOrderDetailID.ToString(), null, false);
			txtFCode.Text = drvSale[SO_SaleOrderDetailTable.FGOODSCODE_FLD].ToString();
			txtFCode.Tag = voMaster.SaleOrderDetailID;
			chkCompleted.Checked = voMaster.Completed;
			// loading detail
			dstData = boEstimate.List(pintMasterID);
			dstData.Tables[0].Columns[PAY_EstimateDetailTable.ESTIMATEMASTERID_FLD].DefaultValue = pintMasterID;
			LoadDataToGrid();
			// update total field
			UpdateTotal();
			btnEdit.Enabled = true;
			blnIsInEstimate = boEstimate.IsExistFGoodsCode(voMaster.SaleOrderDetailID);
		}
		/// <summary>
		/// Calculate and update Total
		/// </summary>
		private void UpdateTotal()
		{
			decimal decTotalTime = 0, decTotalAmount = 0, decTotalApproved = 0;
			decimal decTotalRequest = 0, decTotalAdvance = 0, decTotalApprovedRequest = 0, decTotalApprovedAdvance = 0;
			for (int i = 0; i < dgrdData.RowCount; i++)
			{
				try
				{
					decTotalTime += Convert.ToDecimal(dgrdData[i, PAY_EstimateDetailTable.TOTALTIME_FLD]);
				}
				catch{}
				try
				{
					decTotalAmount += Convert.ToDecimal(dgrdData[i, PAY_EstimateDetailTable.AMOUNT_FLD]);
				}
				catch{}
				try
				{
					decTotalApproved += Convert.ToDecimal(dgrdData[i, PAY_EstimateDetailTable.APPROVALAMOUNT_FLD]);
				}
				catch{}
				try
				{
					decTotalRequest += Convert.ToDecimal(dgrdData[i, PAY_EstimateDetailTable.REQUESTAMOUNT_FLD]);
				}
				catch{}
				try
				{
					decTotalAdvance += Convert.ToDecimal(dgrdData[i, PAY_EstimateDetailTable.ADVANCEAMOUNT_FLD]);
				}
				catch{}
				try
				{
					decTotalApprovedRequest += Convert.ToDecimal(dgrdData[i, PAY_EstimateDetailTable.APPROVEDREQUESTAMOUNT_FLD]);
				}
				catch{}
				try
				{
					decTotalApprovedAdvance += Convert.ToDecimal(dgrdData[i, PAY_EstimateDetailTable.APPROVEDADVANCEAMOUNT_FLD]);
				}
				catch{}
			}
			txtTotalTime.Text = decTotalTime.ToString(Constants.DECIMAL_LONG_FORMAT);
			txtTotalAmount.Text = decTotalAmount.ToString(Constants.DECIMAL_LONG_FORMAT);
			txtTotalAdvance.Text = decTotalAdvance.ToString(Constants.DECIMAL_LONG_FORMAT);
			txtTotalAdvanceApproved.Text = decTotalApprovedAdvance.ToString(Constants.DECIMAL_LONG_FORMAT);
			txtTotalApproved.Text = decTotalApproved.ToString(Constants.DECIMAL_LONG_FORMAT);
			txtTotalRequest.Text = decTotalRequest.ToString(Constants.DECIMAL_LONG_FORMAT);
			txtTotalRequestApproved.Text = decTotalApprovedRequest.ToString(Constants.DECIMAL_LONG_FORMAT);
		}
		#endregion

		#region Events
		private void BudgetEstimates_Load(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".BudgetEstimates_Load()";
			try
			{
				Security objSecurity = new Security();
				this.Name = THIS;
				if (objSecurity.SetRightForUserOnForm(this, SystemProperty.UserName) == 0)
				{
					this.Close();
					PCSMessageBox.Show(ErrorCode.MESSAGE_YOU_HAVE_NO_RIGHT_TO_VIEW, MessageBoxIcon.Warning);
					return;
				}
				
				//get grid layout
				dtbGridLayOut = FormControlComponents.StoreGridLayout(dgrdData);

				dstData = boEstimate.List(0);
				LoadDataToGrid();

				mFormMode = EnumAction.Default;
				SwitchFormMode();
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void txtTransNo_Validating(object sender, CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtTransNo_Validating()";
			try
			{
				if (btnTransNo.Enabled)
				{
					if (txtTransNo.Modified)
					{
						if (txtTransNo.Text.Trim().Equals(string.Empty))
						{
							ClearData();
							return;
						}
						else
						{
							DataRowView drvResult = FormControlComponents.OpenSearchForm(PAY_EstimateMasterTable.TABLE_NAME, PAY_EstimateMasterTable.TRANSNO_FLD, txtTransNo.Text.Trim(), null, false);
							if (drvResult != null)
							{
								txtTransNo.Text = drvResult[PAY_EstimateMasterTable.TRANSNO_FLD].ToString();
								txtTransNo.Tag = Convert.ToInt32(drvResult[PAY_EstimateMasterTable.ESTIMATEMASTERID_FLD]);
								LoadDataFromMaster(Convert.ToInt32(drvResult[PAY_EstimateMasterTable.ESTIMATEMASTERID_FLD]));
							}
							else
								e.Cancel = true;
						}
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void txtTransNo_KeyDown(object sender, KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtTransNo_KeyDown()";
			try
			{
				if (e.KeyCode == Keys.F4)
					btnTransNo_Click(null, null);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void btnTransNo_Click(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnTransNo_Click()";
			try
			{
				DataRowView drvResult = FormControlComponents.OpenSearchForm(PAY_EstimateMasterTable.TABLE_NAME, PAY_EstimateMasterTable.TRANSNO_FLD, txtTransNo.Text.Trim(), null, true);
				if (drvResult != null)
				{
					txtTransNo.Text = drvResult[PAY_EstimateMasterTable.TRANSNO_FLD].ToString();
					txtTransNo.Tag = Convert.ToInt32(drvResult[PAY_EstimateMasterTable.ESTIMATEMASTERID_FLD]);
					LoadDataFromMaster(Convert.ToInt32(drvResult[PAY_EstimateMasterTable.ESTIMATEMASTERID_FLD]));
                    SwitchFormMode();
				}
				else
					txtTransNo.Focus();
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void txtFCode_Validating(object sender, CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtFCode_Validating()";
			try
			{
				if (txtFCode.Modified)
				{
					if (txtFCode.Text.Trim().Equals(string.Empty))
					{
						txtFCode.Tag = null;
						ClearData();
						return;
					}
					else
					{
						DataRowView drvResult = FormControlComponents.OpenSearchForm("v_SaleForEstimate", SO_SaleOrderDetailTable.FGOODSCODE_FLD, txtFCode.Text.Trim(), null, false);
						if (drvResult != null)
						{
							txtFCode.Text = drvResult[SO_SaleOrderDetailTable.FGOODSCODE_FLD].ToString();
							txtFCode.Tag = Convert.ToInt32(drvResult[SO_SaleOrderDetailTable.SALEORDERDETAILID_FLD]);
							ChangeFGoodsCode();
						}
						else
							e.Cancel = true;
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void txtFCode_KeyDown(object sender, KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtFCode_KeyDown()";
			try
			{
				if (e.KeyCode == Keys.F4)
					btnGoodsCode_Click(null, null);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void btnGoodsCode_Click(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnGoodsCode_Click()";
			try
			{
				DataRowView drvResult = FormControlComponents.OpenSearchForm("v_SaleForEstimate", SO_SaleOrderDetailTable.FGOODSCODE_FLD, txtFCode.Text.Trim(), null, true);
				if (drvResult != null)
				{
					txtFCode.Text = drvResult[SO_SaleOrderDetailTable.FGOODSCODE_FLD].ToString();
					txtFCode.Tag = Convert.ToInt32(drvResult[SO_SaleOrderDetailTable.SALEORDERDETAILID_FLD]);
					ChangeFGoodsCode();
				}
				else
					txtFCode.Focus();
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void btnSearch_Click(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnSearch_Click()";
			try
			{
				if (FormControlComponents.CheckMandatory(txtFCode))
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Warning);
					txtFCode.Focus();
					return;
				}
				DataSet dstNew = boEstimate.ListBySale(Convert.ToInt32(txtFCode.Tag));
				if (dstData != null && dstData.Tables.Count > 0)
					dstData.Tables[0].Rows.Clear();
				foreach (DataRow drowNew in dstNew.Tables[0].Rows)
				{
					DataRow dr = dstData.Tables[0].NewRow();
					dr.ItemArray = drowNew.ItemArray;
					dstData.Tables[0].Rows.Add(dr);
				}
				LoadDataToGrid();
				UpdateTotal();
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void btnAdd_Click(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnAdd_Click()";
			try
			{
				mFormMode = EnumAction.Add;
				SwitchFormMode();
				ClearData();
				LoadDataToGrid();
				dtmTransDate.Value = new UtilsBO().GetDBDate();
				txtTransNo.Text = FormControlComponents.GetNoByMask(this);
				txtTransNo.Focus();
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void btnSave_Click(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnSave_Click()";
			try
			{
				if (!ValidateData())
					return;
				if (SaveData())
				{
					PCSMessageBox.Show(ErrorCode.MESSAGE_AFTER_SAVE_DATA);
					mFormMode = EnumAction.Default;
					BudgetEstimatesBO boEstimate = new BudgetEstimatesBO();
					//reload grid form database
					dstData = new DataSet();
					dstData = boEstimate.List(Convert.ToInt32(txtTransNo.Tag));
					LoadDataToGrid();
					SwitchFormMode();
				}
			}
			catch (PCSException ex)
			{
				if (ex.mCode == ErrorCode.DUPLICATE_KEY)
					txtTransNo.Focus();
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void btnEdit_Click(object sender, EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnEdit_Click()";
			try
			{
				mFormMode = EnumAction.Edit;
				SwitchFormMode();
				LoadDataToGrid();
				txtTransNo.Focus();
				htProductionLine.Clear();
				for (int i = 0; i < dgrdData.RowCount; i++)
				{
					int intProductionLineID = Convert.ToInt32(dgrdData[i, PAY_EstimateDetailTable.PRODUCTIONLINEID_FLD]);
					bool blnIsExist = boEstimate.IsExistProductionLine(Convert.ToInt32(txtFCode.Tag), intProductionLineID);
					htProductionLine.Add(intProductionLineID, blnIsExist);
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void btnDelete_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnDelete_Click()";
			try
			{
				if (!blnIsInEstimate)
				{
					if (PCSMessageBox.Show(ErrorCode.MESSAGE_DELETE_RECORD, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
					{
						PAY_EstimateMasterVO voMaster = new PAY_EstimateMasterVO();
						voMaster.EstimateMasterID = Convert.ToInt32(txtTransNo.Tag);
						boEstimate.Delete(voMaster);
						mFormMode = EnumAction.Default;
						ClearData();
						SwitchFormMode();
						PCSMessageBox.Show(ErrorCode.MESSAGE_AFTER_SAVE_DATA);

						//Set focus to dtmTransDate
						dtmTransDate.Focus();
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}
		private void btnClose_Click(object sender, EventArgs e)
		{
			this.Close();
		}

		private void BudgetEstimates_Closing(object sender, CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".BudgetEstimates_Closing()";
			try
			{
				if (mFormMode != EnumAction.Default)
				{
					DialogResult confirmDialog = PCSMessageBox.Show(ErrorCode.MESSAGE_QUESTION_STORE_INTO_DATABASE, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
					switch (confirmDialog)
					{
						case DialogResult.Yes:
							try
							{
								if (!ValidateData())
									e.Cancel = true;
								else if (!SaveData())
									e.Cancel = true;
							}
							catch
							{
								e.Cancel = true;
							}
							break;
						case DialogResult.No:
							break;
						case DialogResult.Cancel:
							e.Cancel = true;
							break;
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void dgrdData_KeyDown(object sender, KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_KeyDown()";
			try
			{
				if (e.KeyCode == Keys.Delete && dgrdData.RowCount > 0)
				{
					if (btnSave.Enabled)
					{
						bool blnAllowDelete = true;
						int intRowCount = dgrdData.SelectedRows.Count;
						for (int i = 0; i < intRowCount; i++)
						{
							try
							{
								if (Convert.ToDecimal(dgrdData[dgrdData.SelectedRows[i], PAY_EstimateDetailTable.APPROVALAMOUNT_FLD]) > 0)
								{
									blnAllowDelete = false;
									break;
								}
							}
							catch{}
						}
						if (!blnAllowDelete)
							PCSMessageBox.Show(ErrorCode.MESSAGE_WO_CANNOT_DELWOLINE, MessageBoxIcon.Error);
						else
						{
							FormControlComponents.DeleteMultiRowsOnTrueDBGrid(dgrdData);
							dgrdData.Refresh();
						}
						return;
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void dgrdData_AfterColUpdate(object sender, ColEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_AfterColUpdate()";
			try
			{
				if (e.Column.DataColumn.DataField == PAY_EstimateDetailTable.AMOUNT_FLD)
				{
					if((dgrdData.Columns[PAY_EstimateDetailTable.AMOUNT_FLD].Value == DBNull.Value))
						return;
					dgrdData[dgrdData.Row, PAY_EstimateDetailTable.AVAILABLEAMOUNT_FLD] = dgrdData.Columns[PAY_EstimateDetailTable.AMOUNT_FLD].Value;
				}
				UpdateTotal();
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void dgrdData_BeforeColUpdate(object sender, BeforeColUpdateEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_BeforeColUpdate()";
			try
			{
				string strColumnName = e.Column.DataColumn.DataField;
				switch (strColumnName)
				{
					case PAY_EstimateDetailTable.REQUESTLIMIT_FLD:
						try
						{
							decimal decRequestLimit = Convert.ToDecimal(dgrdData.Columns[e.Column.DataColumn.DataField].Text);
							if (decRequestLimit < 0 || decRequestLimit > 100)
							{
								string[] strMsg = new string[]{"0", "100"};
								PCSMessageBox.Show(ErrorCode.MESSAGE_NUMBER_MUST_IN_SCOPE, MessageBoxIcon.Warning, strMsg);
								e.Cancel = true;
							}
						}
						catch
						{
							PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxButtons.OK, MessageBoxIcon.Error);
							e.Cancel = true;
						}
						break;
					case PAY_EstimateDetailTable.ADVANCELIMIT_FLD:
						try
						{
							decimal decAdvanceLimit = Convert.ToDecimal(dgrdData.Columns[e.Column.DataColumn.DataField].Text);
							if (decAdvanceLimit < 0 || decAdvanceLimit > 100)
							{
								string[] strMsg = new string[]{"0", "100"};
								PCSMessageBox.Show(ErrorCode.MESSAGE_NUMBER_MUST_IN_SCOPE, MessageBoxIcon.Warning, strMsg);
								e.Cancel = true;
							}
						}
						catch
						{
							PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxButtons.OK, MessageBoxIcon.Error);
							e.Cancel = true;
						}
						break;
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void dgrdData_RowColChange(object sender, C1.Win.C1TrueDBGrid.RowColChangeEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_RowColChange()";
			try
			{
				// check if user select different row
				if (mFormMode == EnumAction.Edit && e.LastRow != dgrdData.Row)
				{
					// allow user to edit Amount
					foreach (C1DisplayColumn c1Col in dgrdData.Splits[0].DisplayColumns)
						c1Col.Locked = true;
					if (dgrdData.AddNewMode == AddNewModeEnum.NoAddNew)
					{
						int intProductionLineID = Convert.ToInt32(dgrdData[dgrdData.Row, PAY_EstimateDetailTable.PRODUCTIONLINEID_FLD]);
						bool blnIsExist = (bool)htProductionLine[intProductionLineID];
						if (!blnIsInEstimate && !blnIsExist)
						{
							dgrdData.Splits[0].DisplayColumns[PAY_EstimateDetailTable.AMOUNT_FLD].Locked = false;
							dgrdData.Splits[0].DisplayColumns[PAY_EstimateDetailTable.REQUESTLIMIT_FLD].Locked = false;
							dgrdData.Splits[0].DisplayColumns[PAY_EstimateDetailTable.ADVANCELIMIT_FLD].Locked = false;
						}
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}
		#endregion
	}
}
